@lvce-editor/editor-worker 19.72.7 → 19.72.9

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.
@@ -15556,6 +15556,7 @@ const getWordAtOffset = editor => {
15556
15556
  return '';
15557
15557
  };
15558
15558
 
15559
+ const applyEditCommand = wrapCommand$1(applyEdit, false, false);
15559
15560
  const getPositionAtCursor = editorUid => {
15560
15561
  const editor = getEditor$1(editorUid);
15561
15562
  return getPositionAtCursor$1(editor);
@@ -15662,10 +15663,7 @@ const closeFind2 = async editorUid => {
15662
15663
  await closeWidget2(editorUid, Find, 'FindWidget', 0);
15663
15664
  };
15664
15665
  const applyEdits2 = async (editorUid, edits, selectionChanges) => {
15665
- const editor = getEditor$1(editorUid);
15666
- const newEditor = await applyEdit(editor, edits, selectionChanges);
15667
- const newEditorWithDerivedState = await updateDerivedState(editor, newEditor);
15668
- set$a(editorUid, editor, newEditorWithDerivedState);
15666
+ await applyEditCommand(editorUid, edits, selectionChanges);
15669
15667
  };
15670
15668
  const getSourceActions = async editorUid => {
15671
15669
  const actions = await getEditorSourceActions(editorUid);
@@ -18770,7 +18768,7 @@ const renderEventListeners = () => {
18770
18768
  preventDefault: true
18771
18769
  }, {
18772
18770
  name: HandlePaste,
18773
- params: ['paste', 'event.clipboardData ? event.clipboardData.getData("text/plain") : ""'],
18771
+ params: ['paste', 'event.clipboardData.text'],
18774
18772
  preventDefault: true
18775
18773
  }, {
18776
18774
  name: HandleMouseDown,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.72.7",
3
+ "version": "19.72.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"