@hailin-zheng/editor-core 2.2.38 → 2.2.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -17881,6 +17881,11 @@ class DocumentInput {
17881
17881
  this.onPasteEvent.next(evt);
17882
17882
  },
17883
17883
  cut: (evt) => {
17884
+ const event = new CopyElementEvent(this.docCtx);
17885
+ event.sourceEvent = evt;
17886
+ if (DocumentEvent.invokeEvent('ElementCut', this.docCtx.selectionState.startControl, event, 'All')) {
17887
+ return;
17888
+ }
17884
17889
  this.onCutEvent.next(evt);
17885
17890
  }
17886
17891
  };
@@ -20903,6 +20908,7 @@ class EditorCalendarVNode {
20903
20908
  on: {
20904
20909
  click: () => {
20905
20910
  this.onSetValue.next(undefined);
20911
+ this.clear();
20906
20912
  }
20907
20913
  }
20908
20914
  },
@@ -23512,7 +23518,7 @@ class DocEditor {
23512
23518
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
23513
23519
  }
23514
23520
  version() {
23515
- return "2.2.38";
23521
+ return "2.2.40";
23516
23522
  }
23517
23523
  switchPageHeaderEditor() {
23518
23524
  this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);