@ones-editor/editor 2.1.2-beta.25 → 2.1.2-beta.27
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
|
@@ -61027,6 +61027,11 @@ $$${mathData.mathjaxText}$$
|
|
|
61027
61027
|
__publicField(this, "startPos", null);
|
|
61028
61028
|
__publicField(this, "resizeType", null);
|
|
61029
61029
|
__publicField(this, "enabled", false);
|
|
61030
|
+
__publicField(this, "handleEditorResize", () => {
|
|
61031
|
+
if (this.block) {
|
|
61032
|
+
this.updateResizer();
|
|
61033
|
+
}
|
|
61034
|
+
});
|
|
61030
61035
|
__publicField(this, "handleMouseDown", (event) => {
|
|
61031
61036
|
event.preventDefault();
|
|
61032
61037
|
event.stopPropagation();
|
|
@@ -61105,6 +61110,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61105
61110
|
});
|
|
61106
61111
|
this.editor = editor;
|
|
61107
61112
|
this.options = options;
|
|
61113
|
+
this.editor.addListener("resize", this.handleEditorResize);
|
|
61108
61114
|
}
|
|
61109
61115
|
enableResize(block, resizableElement) {
|
|
61110
61116
|
this.block = block;
|
|
@@ -61137,6 +61143,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61137
61143
|
return this.block;
|
|
61138
61144
|
}
|
|
61139
61145
|
destroy() {
|
|
61146
|
+
this.editor.removeListener("resize", this.handleEditorResize);
|
|
61140
61147
|
}
|
|
61141
61148
|
getResizableElement() {
|
|
61142
61149
|
if (this.resizableElement) {
|
|
@@ -88135,7 +88142,7 @@ ${data2.flowchartText}
|
|
|
88135
88142
|
}
|
|
88136
88143
|
}
|
|
88137
88144
|
});
|
|
88138
|
-
editor.version = "2.1.2-beta.
|
|
88145
|
+
editor.version = "2.1.2-beta.27";
|
|
88139
88146
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
88140
88147
|
window.setReauthFail = (fail) => {
|
|
88141
88148
|
window.isReauthError = fail;
|
|
@@ -88236,7 +88243,7 @@ ${data2.flowchartText}
|
|
|
88236
88243
|
});
|
|
88237
88244
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88238
88245
|
OnesEditorToolbar.register(editor);
|
|
88239
|
-
editor.version = "2.1.2-beta.
|
|
88246
|
+
editor.version = "2.1.2-beta.27";
|
|
88240
88247
|
return editor;
|
|
88241
88248
|
}
|
|
88242
88249
|
async function showDocVersions(editor, options, serverUrl) {
|