@ones-editor/editor 2.1.1-beta.24 → 2.1.1-beta.25
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
|
@@ -58097,7 +58097,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58097
58097
|
});
|
|
58098
58098
|
__publicField(this, "executeInsertCommand", () => false);
|
|
58099
58099
|
this.editor = editor;
|
|
58100
|
-
this.colorItem =
|
|
58100
|
+
this.colorItem = new TextColorItem(editor);
|
|
58101
58101
|
this.colorItem.addListener("onClick", this.handleChangeColor);
|
|
58102
58102
|
}
|
|
58103
58103
|
get blockAttributesHandler() {
|
|
@@ -58161,7 +58161,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58161
58161
|
return [];
|
|
58162
58162
|
}
|
|
58163
58163
|
let commands;
|
|
58164
|
-
if (getBlockTextLength$6(editor, block) === 0) {
|
|
58164
|
+
if (getBlockTextLength$6(editor, block) === 0 || !isTextKindBlock(editor, block)) {
|
|
58165
58165
|
commands = getCommands([]);
|
|
58166
58166
|
} else {
|
|
58167
58167
|
const subText2 = getSubText(editor, block, range);
|
|
@@ -58408,7 +58408,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58408
58408
|
states: disable && !(params == null ? void 0 : params.isFilter) ? ["disabled"] : [],
|
|
58409
58409
|
icon: InlineCodeIcon
|
|
58410
58410
|
}];
|
|
58411
|
-
if (getBlockTextLength$6(editor, block) === 0) {
|
|
58411
|
+
if (getBlockTextLength$6(editor, block) === 0 || !isTextKindBlock(editor, block)) {
|
|
58412
58412
|
commands = getStandardTextStyles(commands, []);
|
|
58413
58413
|
} else {
|
|
58414
58414
|
const subText2 = getSubText(editor, block, range);
|
|
@@ -84909,7 +84909,7 @@ ${data2.flowchartText}
|
|
|
84909
84909
|
}
|
|
84910
84910
|
}
|
|
84911
84911
|
});
|
|
84912
|
-
editor.version = "2.1.1-beta.
|
|
84912
|
+
editor.version = "2.1.1-beta.25";
|
|
84913
84913
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
84914
84914
|
window.setReauthFail = (fail) => {
|
|
84915
84915
|
window.isReauthError = fail;
|
|
@@ -85006,7 +85006,7 @@ ${data2.flowchartText}
|
|
|
85006
85006
|
});
|
|
85007
85007
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
85008
85008
|
OnesEditorToolbar.register(editor);
|
|
85009
|
-
editor.version = "2.1.1-beta.
|
|
85009
|
+
editor.version = "2.1.1-beta.25";
|
|
85010
85010
|
return editor;
|
|
85011
85011
|
}
|
|
85012
85012
|
async function showDocVersions(editor, options, serverUrl) {
|