From 30165bd03ad26948c188532dc4508ea5b4332828 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 9 Sep 2024 23:23:03 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/12292 --- app/src/protyle/wysiwyg/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index ad53f33f7..ff2e3aa05 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -1659,7 +1659,8 @@ export class WYSIWYG { } protyle.toolbar.range = getEditorRange(protyle.element); - if (target.tagName === "SPAN") { // https://ld246.com/article/1665141518103 + + if (target.tagName === "SPAN" && !isNotEditBlock(nodeElement)) { // https://ld246.com/article/1665141518103 let types = protyle.toolbar.getCurrentType(protyle.toolbar.range); if (types.length === 0) { // https://github.com/siyuan-note/siyuan/issues/8960