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: 上下键报错
Vanessabbc67b32e2ac
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex 07607d7398..1ab8ccf44f 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -554,7 +554,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {protyle.toolbar.isNewEmptyInline = false;protyle.hint.enableEmoji = false;// 需使用 editabled,否则代码块会把语言字数算入- const nodeEditableElement = getContenteditableElement(nodeElement)+ const nodeEditableElement = getContenteditableElement(nodeElement) || nodeElementconst position = getSelectionOffset(nodeEditableElement, protyle.wysiwyg.element, range);const tdElement = hasClosestByMatchTag(range.startContainer, "TD");if (event.key === "ArrowDown" && nodeEditableElement?.textContent.trimRight().substr(position.start).indexOf("\n") === -1 && (