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: table 中禁止插入代码块
Vanessa61e16c8743bb
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex cd3df62dc0..abbe59ba8e 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -1380,7 +1380,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {return true;}if (matchHotKey(window.siyuan.config.keymap.editor.insert.code.custom, event) &&- !["NodeCodeBlock", "NodeHeading"].includes(nodeElement.getAttribute("data-type"))) {+ !["NodeCodeBlock", "NodeHeading", "NodeTable"].includes(nodeElement.getAttribute("data-type"))) {const id = nodeElement.getAttribute("data-node-id");const html = nodeElement.outerHTML;const editElement = getContenteditableElement(nodeElement);