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: https://github.com/siyuan-note/siyuan/issues/12139
Vanessa669ccfc602a4
diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.tsindex 7baab72c73..e0e2f31f91 100644--- a/app/src/protyle/wysiwyg/remove.ts+++ b/app/src/protyle/wysiwyg/remove.ts@@ -272,7 +272,8 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rang}const isCallout = blockElement.parentElement.classList.contains("callout-content");- if (!blockElement.previousElementSibling && (blockElement.parentElement.getAttribute("data-type") === "NodeBlockquote" || isCallout)) {+ if (!blockElement.previousElementSibling && blockType !== "NodeHeading" &&+ (blockElement.parentElement.getAttribute("data-type") === "NodeBlockquote" || isCallout)) {if (type !== "Delete") {range.insertNode(document.createElement("wbr"));}@@ -320,7 +321,7 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rangreturn;}- if (blockElement.parentElement.classList.contains("li") && blockElement.getAttribute("data-type") !== "NodeHeading" &&+ if (blockElement.parentElement.classList.contains("li") && blockType !== "NodeHeading" &&blockElement.previousElementSibling.classList.contains("protyle-action")) {removeLi(protyle, blockElement, range, type === "Delete");return;@@ -356,7 +357,7 @@ export const removeBlock = async (protyle: IProtyle, blockElement: Element, rangblockElement.previousElementSibling.getAttribute("fold") === "1") {setFold(protyle, blockElement.previousElementSibling, true, false, false);}- if (blockElement.getAttribute("data-type") === "NodeHeading" &&+ if (blockType === "NodeHeading" &&blockElement.getAttribute("fold") === "1") {setFold(protyle, blockElement, true, false, false);}