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/12149
Vanessa09fb905764bb
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex ebfc727a5a..cea74a41d1 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -890,7 +890,9 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {event.preventDefault();return;}- if (position.start === 1 && !inlineElement && editElement.textContent.startsWith(Constants.ZWSP)) {+ if (position.start === 1 && !inlineElement && editElement.textContent.startsWith(Constants.ZWSP) &&+ // https://github.com/siyuan-note/siyuan/issues/12149+ editElement.textContent.length > 1) {setFirstNodeRange(editElement, range);removeBlock(protyle, nodeElement, range, "Backspace");event.stopPropagation();