@ones-editor/editor 2.1.2-beta.20 → 2.1.2-beta.21
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/index.js
CHANGED
|
@@ -66095,6 +66095,9 @@ ${codeText}
|
|
|
66095
66095
|
this.tryEnableResizer(block);
|
|
66096
66096
|
}
|
|
66097
66097
|
});
|
|
66098
|
+
__publicField(this, "handleEditorResize", () => {
|
|
66099
|
+
this.blockResizer.updateResizer();
|
|
66100
|
+
});
|
|
66098
66101
|
this.editor = editor;
|
|
66099
66102
|
OnesEditorHoveringBlock.get(editor).addListener("change", this.handleHoveringBlockChange);
|
|
66100
66103
|
this.blockResizer = new BlockResizer(this.editor, {
|
|
@@ -66102,8 +66105,10 @@ ${codeText}
|
|
|
66102
66105
|
});
|
|
66103
66106
|
this.blockResizer.addListener("resizing", this.handleResizing);
|
|
66104
66107
|
this.blockResizer.addListener("resized", this.handleResized);
|
|
66108
|
+
this.editor.addListener("resize", this.handleEditorResize);
|
|
66105
66109
|
}
|
|
66106
66110
|
destroy() {
|
|
66111
|
+
this.editor.removeListener("resize", this.handleEditorResize);
|
|
66107
66112
|
OnesEditorHoveringBlock.get(this.editor).removeListener("change", this.handleHoveringBlockChange);
|
|
66108
66113
|
}
|
|
66109
66114
|
tryEnableResizer(block) {
|
|
@@ -88119,7 +88124,7 @@ ${data2.flowchartText}
|
|
|
88119
88124
|
}
|
|
88120
88125
|
}
|
|
88121
88126
|
});
|
|
88122
|
-
editor.version = "2.1.2-beta.
|
|
88127
|
+
editor.version = "2.1.2-beta.21";
|
|
88123
88128
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
88124
88129
|
window.setReauthFail = (fail) => {
|
|
88125
88130
|
window.isReauthError = fail;
|
|
@@ -88220,7 +88225,7 @@ ${data2.flowchartText}
|
|
|
88220
88225
|
});
|
|
88221
88226
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88222
88227
|
OnesEditorToolbar.register(editor);
|
|
88223
|
-
editor.version = "2.1.2-beta.
|
|
88228
|
+
editor.version = "2.1.2-beta.21";
|
|
88224
88229
|
return editor;
|
|
88225
88230
|
}
|
|
88226
88231
|
async function showDocVersions(editor, options, serverUrl) {
|