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(" ");