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: fix https://github.com/siyuan-note/siyuan/issues/9141
Vanessaa8770ce426ff
diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.tsindex 0f58cb5d4d..b50a531cf1 100644--- a/app/src/protyle/wysiwyg/remove.ts+++ b/app/src/protyle/wysiwyg/remove.ts@@ -411,7 +411,8 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: Ran} else {transaction(protyle, doOperations, undoOperations);}- focusBlock(protyle.wysiwyg.element.querySelector(`[data-node-id="${previousId}"]`), undefined, false);+ // toStart 参数不能为 false, 否则 https://github.com/siyuan-note/siyuan/issues/9141+ focusBlock(protyle.wysiwyg.element.querySelector(`[data-node-id="${previousId}"]`), undefined, true);} else {focusBlock(previousLastElement, undefined, false);}