@ones-editor/editor 2.2.16-beta.3 → 2.2.16-beta.5
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
|
@@ -52173,7 +52173,10 @@ ${codeText}
|
|
|
52173
52173
|
}
|
|
52174
52174
|
this.toolbar.updateItems(commands);
|
|
52175
52175
|
const lastBlock2 = selectedBlocks[selectedBlocks.length - 1];
|
|
52176
|
-
|
|
52176
|
+
let reverseToolbar = !this.editor.selection.range.isReverse() && lastBlock2 !== firstBlock;
|
|
52177
|
+
if (!reverseToolbar && isTitleBlock$2(firstBlock.block)) {
|
|
52178
|
+
reverseToolbar = true;
|
|
52179
|
+
}
|
|
52177
52180
|
const selectedBlock = reverseToolbar ? lastBlock2 : firstBlock;
|
|
52178
52181
|
const rect = getReferenceClientRect(this.editor, selectedBlock);
|
|
52179
52182
|
const anchor2 = createBlockAnchor(this.editor, selectedBlock.block, "editor-readonly-toolbar", rect);
|
|
@@ -76749,12 +76752,6 @@ ${content}
|
|
|
76749
76752
|
id: "download",
|
|
76750
76753
|
name: i18n$1.t("file.commands.download"),
|
|
76751
76754
|
icon: DownloadIcon
|
|
76752
|
-
}, {
|
|
76753
|
-
id: "add-comment",
|
|
76754
|
-
name: i18n$1.t("file.commands.comment"),
|
|
76755
|
-
icon: CommentIcon$1,
|
|
76756
|
-
groupOrder: 1e3,
|
|
76757
|
-
order: 100
|
|
76758
76755
|
}, {
|
|
76759
76756
|
id: "sep",
|
|
76760
76757
|
name: "",
|
|
@@ -88378,7 +88375,7 @@ ${data2.flowchartText}
|
|
|
88378
88375
|
}
|
|
88379
88376
|
}
|
|
88380
88377
|
});
|
|
88381
|
-
editor.version = "2.2.16-beta.
|
|
88378
|
+
editor.version = "2.2.16-beta.5";
|
|
88382
88379
|
return editor;
|
|
88383
88380
|
}
|
|
88384
88381
|
function isDoc(doc2) {
|
|
@@ -88472,7 +88469,7 @@ ${data2.flowchartText}
|
|
|
88472
88469
|
});
|
|
88473
88470
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88474
88471
|
OnesEditorToolbar.register(editor);
|
|
88475
|
-
editor.version = "2.2.16-beta.
|
|
88472
|
+
editor.version = "2.2.16-beta.5";
|
|
88476
88473
|
return editor;
|
|
88477
88474
|
}
|
|
88478
88475
|
async function showDocVersions(editor, options, serverUrl) {
|