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/8930
Vanessa25dd919cf563
diff --git a/app/src/protyle/wysiwyg/getBlock.ts b/app/src/protyle/wysiwyg/getBlock.tsindex 10c07c6939..521ab96d2c 100644--- a/app/src/protyle/wysiwyg/getBlock.ts+++ b/app/src/protyle/wysiwyg/getBlock.ts@@ -30,7 +30,8 @@ export const getLastBlock = (element: Element) => {export const getFirstBlock = (element: Element) => {let firstElement;Array.from(element.querySelectorAll("[data-node-id]")).find(item => {- if (!hasClosestByAttribute(item.parentElement, "data-type", "NodeBlockQueryEmbed") && !item.classList.contains("li")) {+ if (!hasClosestByAttribute(item.parentElement, "data-type", "NodeBlockQueryEmbed") &&+ !item.classList.contains("li") && !item.classList.contains("sb")) {firstElement = item;return true;}@@ -187,7 +188,7 @@ export const getNextFileLi = (current: Element) => {nextElement = nextElement.parentElement;} else if (nextElement.nextElementSibling.tagName === "LI") {return nextElement.nextElementSibling;- } else if (nextElement.nextElementSibling.tagName === "UL") {+ } else if (nextElement.nextElementSibling.tagName === "UL") {return nextElement.nextElementSibling.firstElementChild;}}