From 88f29a75197aa47ad0d4504babf8a84b7c95adb0 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 13 Nov 2024 10:58:13 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/12673 --- app/src/protyle/wysiwyg/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 29fd85509..7ee1d5312 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -1775,7 +1775,7 @@ export class WYSIWYG { protyle.toolbar.range = getEditorRange(protyle.element); if (target.tagName === "SPAN" && !isNotEditBlock(nodeElement)) { // https://ld246.com/article/1665141518103 - let types = protyle.toolbar.getCurrentType(protyle.toolbar.range); + let types = target.getAttribute("data-type")?.split(" "); if (types.length === 0) { // https://github.com/siyuan-note/siyuan/issues/8960 types = (target.dataset.type || "").split(" ");