@ones-editor/editor 2.1.1-beta.80 → 2.1.1-beta.81
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
|
@@ -50537,7 +50537,9 @@ ${codeText}
|
|
|
50537
50537
|
return;
|
|
50538
50538
|
}
|
|
50539
50539
|
if (!this.editor.isWritable()) {
|
|
50540
|
-
this.
|
|
50540
|
+
if (this.toolbarType === "text") {
|
|
50541
|
+
this.toolbar.close("selectionChange");
|
|
50542
|
+
}
|
|
50541
50543
|
this.oldRange = null;
|
|
50542
50544
|
return;
|
|
50543
50545
|
}
|
|
@@ -50693,10 +50695,6 @@ ${codeText}
|
|
|
50693
50695
|
return;
|
|
50694
50696
|
}
|
|
50695
50697
|
this.toolbarType = "text";
|
|
50696
|
-
if (allCommands.length === 0) {
|
|
50697
|
-
this.toolbar.close("selectionChange");
|
|
50698
|
-
return;
|
|
50699
|
-
}
|
|
50700
50698
|
this.toolbar.updateItems(allCommands);
|
|
50701
50699
|
const lastBlock2 = selectedBlocks[selectedBlocks.length - 1];
|
|
50702
50700
|
let reverseToolbar = !this.editor.selection.range.isReverse() && lastBlock2 !== firstBlock;
|
|
@@ -86768,7 +86766,7 @@ ${data2.flowchartText}
|
|
|
86768
86766
|
}
|
|
86769
86767
|
}
|
|
86770
86768
|
});
|
|
86771
|
-
editor.version = "2.1.1-beta.
|
|
86769
|
+
editor.version = "2.1.1-beta.81";
|
|
86772
86770
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
86773
86771
|
window.setReauthFail = (fail) => {
|
|
86774
86772
|
window.isReauthError = fail;
|
|
@@ -86869,7 +86867,7 @@ ${data2.flowchartText}
|
|
|
86869
86867
|
});
|
|
86870
86868
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
86871
86869
|
OnesEditorToolbar.register(editor);
|
|
86872
|
-
editor.version = "2.1.1-beta.
|
|
86870
|
+
editor.version = "2.1.1-beta.81";
|
|
86873
86871
|
return editor;
|
|
86874
86872
|
}
|
|
86875
86873
|
async function showDocVersions(editor, options, serverUrl) {
|