@ones-editor/editor 2.8.9-beta.1 → 2.8.9-beta.2
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
|
@@ -12050,15 +12050,16 @@ var __publicField = (obj, key, value) => {
|
|
|
12050
12050
|
if (!isTextKindBlock(this.editor, block)) {
|
|
12051
12051
|
return;
|
|
12052
12052
|
}
|
|
12053
|
+
const eTarget = event.target;
|
|
12053
12054
|
const box = getParentBox(elem);
|
|
12054
|
-
if (box) {
|
|
12055
|
+
if (box && isChildNode(box, eTarget)) {
|
|
12055
12056
|
const block2 = getParentBlock(box);
|
|
12056
12057
|
assert(logger$4C, block2, "no parent block");
|
|
12057
12058
|
(_b = (_a = this.editor.editorBoxes.getBoxClass(getBoxTypeFromElement(box))) == null ? void 0 : _a.handleClickBox) == null ? void 0 : _b.call(_a, this.editor, box, event);
|
|
12058
12059
|
return;
|
|
12059
12060
|
}
|
|
12060
12061
|
const link2 = elem.closest("span.text.link");
|
|
12061
|
-
if (link2) {
|
|
12062
|
+
if (link2 && isChildNode(link2, eTarget)) {
|
|
12062
12063
|
const children = getTextBlockContentChildren(block);
|
|
12063
12064
|
const index2 = children.indexOf(link2);
|
|
12064
12065
|
if (index2 !== -1) {
|
|
@@ -92593,7 +92594,7 @@ ${data2.plantumlText}
|
|
|
92593
92594
|
}
|
|
92594
92595
|
}
|
|
92595
92596
|
});
|
|
92596
|
-
editor.version = "2.8.9-beta.
|
|
92597
|
+
editor.version = "2.8.9-beta.2";
|
|
92597
92598
|
return editor;
|
|
92598
92599
|
}
|
|
92599
92600
|
function isDoc(doc2) {
|
|
@@ -92706,7 +92707,7 @@ ${data2.plantumlText}
|
|
|
92706
92707
|
}
|
|
92707
92708
|
});
|
|
92708
92709
|
OnesEditorToolbar.register(editor);
|
|
92709
|
-
editor.version = "2.8.9-beta.
|
|
92710
|
+
editor.version = "2.8.9-beta.2";
|
|
92710
92711
|
return editor;
|
|
92711
92712
|
}
|
|
92712
92713
|
async function showDocVersions(editor, options, serverUrl) {
|