@ones-editor/editor 2.2.16-beta.4 → 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);
|
|
@@ -88372,7 +88375,7 @@ ${data2.flowchartText}
|
|
|
88372
88375
|
}
|
|
88373
88376
|
}
|
|
88374
88377
|
});
|
|
88375
|
-
editor.version = "2.2.16-beta.
|
|
88378
|
+
editor.version = "2.2.16-beta.5";
|
|
88376
88379
|
return editor;
|
|
88377
88380
|
}
|
|
88378
88381
|
function isDoc(doc2) {
|
|
@@ -88466,7 +88469,7 @@ ${data2.flowchartText}
|
|
|
88466
88469
|
});
|
|
88467
88470
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88468
88471
|
OnesEditorToolbar.register(editor);
|
|
88469
|
-
editor.version = "2.2.16-beta.
|
|
88472
|
+
editor.version = "2.2.16-beta.5";
|
|
88470
88473
|
return editor;
|
|
88471
88474
|
}
|
|
88472
88475
|
async function showDocVersions(editor, options, serverUrl) {
|