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/6107
Vanessae2eca1186d7c
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex a51d7273fd..33d82c4837 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -1020,6 +1020,9 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {if (!selectText.trim() && (nodeElement.querySelector("tr") || nodeElement.querySelector("span"))) {// 没选中时,都是纯文本就创建子文档 https://ld246.com/article/1663073488381/comment/1664804353295#comments} else {+ if (!selectText.trim()) {+ selectAll(protyle, nodeElement, range);+ }newFileBySelect(selectText.trim() ? selectText.trim() : protyle.lute.BlockDOM2Content(nodeElement.outerHTML), protyle);}event.preventDefault();