An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/7656
Vanessa98e4f27debcd
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex 92f18cb1b7..26dde8b60b 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -525,7 +525,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {const selectElements = Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select"));if (selectElements.length === 0) {const inlineElement = hasClosestByAttribute(range.startContainer, "data-type", null);- if (inlineElement) {+ if (inlineElement && inlineElement.tagName === "SPAN") {const types = inlineElement.getAttribute("data-type").split(" ");if (types.length > 0) {protyle.toolbar.range = range;