@ones-editor/editor 2.2.12-beta.1 → 2.2.12-beta.3
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
|
@@ -51708,10 +51708,6 @@ ${codeText}
|
|
|
51708
51708
|
return;
|
|
51709
51709
|
}
|
|
51710
51710
|
}
|
|
51711
|
-
if (isTitleBlock$2(firstBlock.block)) {
|
|
51712
|
-
this.toolbar.close("selectionChange");
|
|
51713
|
-
return;
|
|
51714
|
-
}
|
|
51715
51711
|
this.toolbar.updateItems(commands);
|
|
51716
51712
|
const lastBlock2 = selectedBlocks[selectedBlocks.length - 1];
|
|
51717
51713
|
const reverseToolbar = !this.editor.selection.range.isReverse() && lastBlock2 !== firstBlock;
|
|
@@ -69170,6 +69166,9 @@ ${codeText}
|
|
|
69170
69166
|
};
|
|
69171
69167
|
}
|
|
69172
69168
|
getTextCommands(editor, range) {
|
|
69169
|
+
if (isSelectedTitleBlock(editor)) {
|
|
69170
|
+
return [];
|
|
69171
|
+
}
|
|
69173
69172
|
if (range.isCollapsed()) {
|
|
69174
69173
|
return [];
|
|
69175
69174
|
}
|
|
@@ -88287,7 +88286,7 @@ ${data2.flowchartText}
|
|
|
88287
88286
|
}
|
|
88288
88287
|
}
|
|
88289
88288
|
});
|
|
88290
|
-
editor.version = "2.2.12-beta.
|
|
88289
|
+
editor.version = "2.2.12-beta.3";
|
|
88291
88290
|
return editor;
|
|
88292
88291
|
}
|
|
88293
88292
|
function isDoc(doc2) {
|
|
@@ -88382,7 +88381,7 @@ ${data2.flowchartText}
|
|
|
88382
88381
|
});
|
|
88383
88382
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88384
88383
|
OnesEditorToolbar.register(editor);
|
|
88385
|
-
editor.version = "2.2.12-beta.
|
|
88384
|
+
editor.version = "2.2.12-beta.3";
|
|
88386
88385
|
return editor;
|
|
88387
88386
|
}
|
|
88388
88387
|
async function showDocVersions(editor, options, serverUrl) {
|