@lvce-editor/editor-worker 7.1.0 → 7.2.0
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/editorWorkerMain.js +2 -2
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -1132,14 +1132,14 @@ const getModule$2 = id => {
|
|
|
1132
1132
|
const applyWidgetChange = async (editor, widget, changes) => {
|
|
1133
1133
|
const module = getModule$2(widget.id);
|
|
1134
1134
|
if (changes.length === 1 && changes[0].origin === EditorType && module.handleEditorType) {
|
|
1135
|
-
const newState = await module.handleEditorType(
|
|
1135
|
+
const newState = await module.handleEditorType(widget.newState);
|
|
1136
1136
|
return {
|
|
1137
1137
|
...widget,
|
|
1138
1138
|
newState
|
|
1139
1139
|
};
|
|
1140
1140
|
}
|
|
1141
1141
|
if (changes.length === 1 && changes[0].origin === DeleteLeft && module.handleEditorDeleteLeft) {
|
|
1142
|
-
const newState = await module.handleEditorDeleteLeft(
|
|
1142
|
+
const newState = await module.handleEditorDeleteLeft(widget.newState);
|
|
1143
1143
|
return {
|
|
1144
1144
|
...widget,
|
|
1145
1145
|
newState
|