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: https://github.com/siyuan-note/siyuan/issues/14290
Vanessae4849c59110d
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex 74c3674b17..d151f95aa9 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -839,12 +839,15 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {// 需使用 innerText,否则 br 无法传唤为 /n https://github.com/siyuan-note/siyuan/issues/12066// 段末反向删除 https://github.com/siyuan-note/insider/issues/274if (isEndOfBlock(range)) {+ const cloneRange = range.cloneRange();const nextElement = getNextBlock(getTopAloneElement(nodeElement));if (nextElement) {const nextRange = focusBlock(nextElement);if (nextRange) {const nextBlockElement = hasClosestBlock(nextRange.startContainer);if (nextBlockElement) {+ // 反向删除合并为一个块时,光标应保持在尾部 https://github.com/siyuan-note/siyuan/issues/14290#issuecomment-2849810529+ cloneRange.insertNode(document.createElement("wbr"));removeBlock(protyle, nextBlockElement, nextRange, "Delete");}}