More iframe height fixing

This commit is contained in:
Zef Hemel
2023-10-04 16:21:18 +02:00
parent 852b07c7a7
commit 371932e085
3 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -23,6 +23,7 @@ class IFrameWidget extends WidgetType {
}
toDOM(): HTMLElement {
const from = this.from;
const iframe = createWidgetSandboxIFrame(
this.editor,
this.bodyText,
@@ -31,7 +32,7 @@ class IFrameWidget extends WidgetType {
switch (message.type) {
case "blur":
this.editor.editorView.dispatch({
selection: { anchor: this.from },
selection: { anchor: from },
});
this.editor.focus();