@lvce-editor/editor-worker 19.78.5 → 19.78.6
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/dist/diff-sdk.js +2 -2
- package/dist/editorWorkerMain.js +2 -2
- package/package.json +1 -1
package/dist/diff-sdk.js
CHANGED
|
@@ -17895,10 +17895,10 @@ const compositionEnd = (editor, data) => {
|
|
|
17895
17895
|
const {
|
|
17896
17896
|
selections
|
|
17897
17897
|
} = editor;
|
|
17898
|
-
const changes = getCompositionChanges(selections, data);
|
|
17898
|
+
const changes = data === state$4.compositionText ? undefined : getCompositionChanges(selections, data);
|
|
17899
17899
|
state$4.isComposing = false;
|
|
17900
17900
|
state$4.compositionText = '';
|
|
17901
|
-
return scheduleDocumentAndCursorsSelections(editor, changes);
|
|
17901
|
+
return changes ? scheduleDocumentAndCursorsSelections(editor, changes) : editor;
|
|
17902
17902
|
};
|
|
17903
17903
|
|
|
17904
17904
|
const writeText = async text => {
|
package/dist/editorWorkerMain.js
CHANGED
|
@@ -18320,10 +18320,10 @@ const compositionEnd = (editor, data) => {
|
|
|
18320
18320
|
const {
|
|
18321
18321
|
selections
|
|
18322
18322
|
} = editor;
|
|
18323
|
-
const changes = getCompositionChanges(selections, data);
|
|
18323
|
+
const changes = data === state$4.compositionText ? undefined : getCompositionChanges(selections, data);
|
|
18324
18324
|
state$4.isComposing = false;
|
|
18325
18325
|
state$4.compositionText = '';
|
|
18326
|
-
return scheduleDocumentAndCursorsSelections(editor, changes);
|
|
18326
|
+
return changes ? scheduleDocumentAndCursorsSelections(editor, changes) : editor;
|
|
18327
18327
|
};
|
|
18328
18328
|
|
|
18329
18329
|
const writeText = async text => {
|