From b1ab6ab69a1b87708ffd4e5854274ae2b6b70a1a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 7 Mar 2023 11:17:00 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/7586 --- app/src/protyle/wysiwyg/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index c7119c332..b90df8cf4 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -139,6 +139,7 @@ export class WYSIWYG { if (// 表格行内公式之前无法插入文字 https://github.com/siyuan-note/siyuan/issues/3908 inlineElement.tagName === "SPAN" && inlineElement.textContent !== inputData && + !currentTypes.includes("search-mark") && // https://github.com/siyuan-note/siyuan/issues/7586 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 &&