Refactoring of offline handling

This commit is contained in:
Zef Hemel
2023-07-27 11:41:44 +02:00
parent 7b8d8af2c1
commit 4d0f36d475
13 changed files with 251 additions and 206 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ class IFrameWidget extends WidgetType {
iframe.style.height = data.height + "px";
break;
case "setBody":
this.editor.editorView!.dispatch({
this.editor.editorView.dispatch({
changes: {
from: this.from,
to: this.to,
@@ -50,7 +50,7 @@ class IFrameWidget extends WidgetType {
});
break;
case "blur":
this.editor.editorView!.dispatch({
this.editor.editorView.dispatch({
selection: { anchor: this.from },
});
this.editor.focus();