From e2b28b5052d74943ae33fdab7dde02b7603378e8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 31 Oct 2022 15:45:45 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/6419 --- 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 3e711043d..68bf8322c 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -1023,6 +1023,7 @@ export class WYSIWYG { } else if (selectImgElement) { tempElement.append(selectImgElement); } else if (range.startContainer.nodeType === 3 && range.startContainer.parentElement.tagName === "SPAN" && + range.startContainer.parentElement.getAttribute("data-type") && range.startContainer.parentElement.isSameNode(range.endContainer.parentElement)) { // 剪切粗体等字体中的一部分 const spanElement = range.startContainer.parentElement;