@ones-editor/editor 3.0.4-beta.103 → 3.0.4-beta.104
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +18 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -67391,11 +67391,11 @@ ${codeText}
|
|
|
67391
67391
|
}
|
|
67392
67392
|
function applyPlaceholderToBlock(editor, block, placeholder2) {
|
|
67393
67393
|
removePlaceholderFromBlock(editor, block);
|
|
67394
|
-
if (!isEmptyTextBlockWithoutCompositionText(editor, block)) {
|
|
67395
|
-
return;
|
|
67396
|
-
}
|
|
67397
67394
|
setTimeout(() => {
|
|
67398
67395
|
var _a;
|
|
67396
|
+
if (!isEmptyTextBlockWithoutCompositionText(editor, block)) {
|
|
67397
|
+
return;
|
|
67398
|
+
}
|
|
67399
67399
|
const contentElem = getBlockContent(block);
|
|
67400
67400
|
if (typeof placeholder2 === "string") {
|
|
67401
67401
|
contentElem.setAttribute("data-content-placeholder", placeholder2);
|
|
@@ -70912,6 +70912,19 @@ ${codeText}
|
|
|
70912
70912
|
iconUrl: comment.avatarUrl,
|
|
70913
70913
|
mentionId: comment.userId
|
|
70914
70914
|
};
|
|
70915
|
+
const blockText = editorGetBlockText(replyEditor.editor, focusBlock);
|
|
70916
|
+
let hasMention = false;
|
|
70917
|
+
blockText.forEach((textSegment) => {
|
|
70918
|
+
var _a, _b;
|
|
70919
|
+
if (((_a = textSegment.attributes) == null ? void 0 : _a.type) === "mention" && ((_b = textSegment.attributes) == null ? void 0 : _b.mentionId) === comment.userId) {
|
|
70920
|
+
hasMention = true;
|
|
70921
|
+
return;
|
|
70922
|
+
}
|
|
70923
|
+
});
|
|
70924
|
+
if (hasMention) {
|
|
70925
|
+
replyEditor.editor.focus();
|
|
70926
|
+
return;
|
|
70927
|
+
}
|
|
70915
70928
|
replyEditor.editor.insertBoxToBlock(focusBlock, 0, mentionBoxData);
|
|
70916
70929
|
});
|
|
70917
70930
|
__publicField(this, "handleCommentItemMore", (groupItem) => {
|
|
@@ -96685,7 +96698,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96685
96698
|
}
|
|
96686
96699
|
}
|
|
96687
96700
|
});
|
|
96688
|
-
editor.version = "3.0.4-beta.
|
|
96701
|
+
editor.version = "3.0.4-beta.104";
|
|
96689
96702
|
return editor;
|
|
96690
96703
|
}
|
|
96691
96704
|
function isDoc(doc2) {
|
|
@@ -96819,7 +96832,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96819
96832
|
OnesEditorDropTarget.register(editor);
|
|
96820
96833
|
OnesEditorTocProvider.register(editor);
|
|
96821
96834
|
OnesEditorExclusiveBlock.register(editor);
|
|
96822
|
-
editor.version = "3.0.4-beta.
|
|
96835
|
+
editor.version = "3.0.4-beta.104";
|
|
96823
96836
|
return editor;
|
|
96824
96837
|
}
|
|
96825
96838
|
async function showDocVersions(editor, options, serverUrl) {
|