mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
This commit is contained in:
parent
7c0490791c
commit
b7318d9204
1 changed files with 3 additions and 0 deletions
|
|
@ -202,6 +202,9 @@ export class WYSIWYG {
|
|||
inlineElement.tagName === "SPAN" &&
|
||||
inlineElement.textContent !== inputData &&
|
||||
!currentTypes.includes("search-mark") && // https://github.com/siyuan-note/siyuan/issues/7586
|
||||
!currentTypes.includes("code") && // https://github.com/siyuan-note/siyuan/issues/13871
|
||||
!currentTypes.includes("kbd") &&
|
||||
!currentTypes.includes("tag") &&
|
||||
range.toString() === "" && range.startContainer.nodeType === 3 &&
|
||||
(currentTypes.includes("inline-memo") || currentTypes.includes("text") || currentTypes.includes("block-ref") || currentTypes.includes("file-annotation-ref") || currentTypes.includes("a")) &&
|
||||
!hasNextSibling(range.startContainer) && range.startContainer.textContent.length === range.startOffset &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue