Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/12292

Vanessa30165bd03ad2
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index ad53f33f7f..ff2e3aa054 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