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: disabled heading to code block
Vanessa940812d251f1
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex 2fa7abffd3..41ab859fec 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -1270,7 +1270,8 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {event.stopPropagation();return true;}- if (matchHotKey(window.siyuan.config.keymap.editor.insert.code.custom, event) && nodeElement.getAttribute("data-type") !== "NodeCodeBlock") {+ if (matchHotKey(window.siyuan.config.keymap.editor.insert.code.custom, event) &&+ !["NodeCodeBlock", "NodeHeading"].includes(nodeElement.getAttribute("data-type"))) {const id = nodeElement.getAttribute("data-node-id");const html = nodeElement.outerHTML;const editElement = getContenteditableElement(nodeElement);