An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/8960
Vanessa9fa331b407e2
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 3aa17cd311..87239e20f1 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1266,7 +1266,11 @@ export class WYSIWYG {}protyle.toolbar.range = getEditorRange(protyle.element);if (target.tagName === "SPAN") { // https://ld246.com/article/1665141518103- const types = protyle.toolbar.getCurrentType(protyle.toolbar.range);+ let types = protyle.toolbar.getCurrentType(protyle.toolbar.range);+ if (types.length === 0) {+ // https://github.com/siyuan-note/siyuan/issues/8960+ types = (target.dataset.type || "").split(" ");+ }if (types.length > 0) {removeSearchMark(target);}