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/5168
Vanessa6cba470b6939
diff --git a/app/src/block/util.ts b/app/src/block/util.tsindex d60a5ef308..b27888257d 100644--- a/app/src/block/util.ts+++ b/app/src/block/util.ts@@ -54,7 +54,8 @@ export const insertEmptyBlock = (protyle: IProtyle, position: InsertPosition, idconst parentOldHTML = blockElement.parentElement.outerHTML;const newId = newElement.getAttribute("data-node-id");blockElement.insertAdjacentElement(position, newElement);- if (blockElement.getAttribute("data-type") === "NodeListItem" && blockElement.getAttribute("data-subtype") === "o") {+ if (blockElement.getAttribute("data-type") === "NodeListItem" && blockElement.getAttribute("data-subtype") === "o" &&+ !newElement.parentElement.classList.contains("protyle-wysiwyg")) {updateListOrder(newElement.parentElement, orderIndex);updateTransaction(protyle, newElement.parentElement.getAttribute("data-node-id"), newElement.parentElement.outerHTML, parentOldHTML);} else {