mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-17 22:25:29 +01:00
This commit is contained in:
parent
7e8a26f230
commit
ee1509d960
1 changed files with 2 additions and 1 deletions
|
|
@ -349,7 +349,8 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
|
|||
// 选中 ref**bbb** 后 alt+[
|
||||
range.deleteContents();
|
||||
// https://github.com/siyuan-note/siyuan/issues/14035
|
||||
if (range.startContainer.nodeType !== 3 && range.startContainer.textContent === "") {
|
||||
if (range.startContainer.nodeType !== 3 && (range.startContainer as Element).tagName === "SPAN" &&
|
||||
range.startContainer.textContent === "") {
|
||||
// ref 选中处理 https://ld246.com/article/1629214377537
|
||||
(range.startContainer as HTMLElement).remove();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue