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/5882
Vanessad4d45d0db3fc
diff --git a/app/src/protyle/wysiwyg/getBlock.ts b/app/src/protyle/wysiwyg/getBlock.tsindex 32f48ea104..64145c109d 100644--- a/app/src/protyle/wysiwyg/getBlock.ts+++ b/app/src/protyle/wysiwyg/getBlock.ts@@ -94,7 +94,8 @@ export const getTopEmptyElement = (element: Element) => {while (topElement.parentElement && !topElement.parentElement.classList.contains("protyle-wysiwyg")) {if (!topElement.parentElement.getAttribute("data-node-id")) {topElement = topElement.parentElement;- } else if (topElement.parentElement.textContent !== "" || topElement.previousElementSibling?.getAttribute("data-node-id")) {+ } else if (getContenteditableElement(topElement.parentElement).textContent !== "" ||+ topElement.previousElementSibling?.getAttribute("data-node-id")) {break;} else {topElement = topElement.parentElement;