mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-05 15:11:48 +01:00
This commit is contained in:
parent
38e38e83a4
commit
454538baec
1 changed files with 2 additions and 2 deletions
|
|
@ -110,8 +110,8 @@ const genUploadedLabel = (responseText: string, protyle: IProtyle) => {
|
|||
}
|
||||
});
|
||||
const range = getEditorRange(protyle.wysiwyg.element);
|
||||
if (!succFileText.startsWith("<") && range.toString() === "" && range.startContainer.nodeType === 3 && protyle.toolbar.getCurrentType(range).length > 0) {
|
||||
// 防止链接插入其他元素中
|
||||
if (range.toString() === "" && range.startContainer.nodeType === 3 && protyle.toolbar.getCurrentType(range).length > 0) {
|
||||
// 防止链接插入其他元素中 https://ld246.com/article/1676003478664
|
||||
range.setEndAfter(range.startContainer.parentElement);
|
||||
range.collapse(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue