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/13764
Vanessa5abce8710b5d
diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.tsindex 4aa4216562..68f1aa6d7e 100644--- a/app/src/protyle/wysiwyg/remove.ts+++ b/app/src/protyle/wysiwyg/remove.ts@@ -9,7 +9,7 @@ import {hasNextSibling,hasPreviousSibling} from "./getBlock";-import {transaction, turnsIntoTransaction, updateTransaction} from "./transaction";+import {transaction, turnsIntoOneTransaction, turnsIntoTransaction, updateTransaction} from "./transaction";import {cancelSB, genEmptyElement} from "../../block/util";import {listOutdent, updateListOrder} from "./list";import {setFold, zoomOut} from "../../menus/protyle";@@ -543,6 +543,24 @@ const removeLi = (protyle: IProtyle, blockElement: Element, range: Range, isDeleid: listElement.getAttribute("data-node-id"),});transaction(protyle, doOperations, undoOperations);+ if (listElement.parentElement.classList.contains("sb") &&+ listElement.parentElement.getAttribute("data-sb-layout") === "col") {+ const selectsElement: Element[] = []+ let previousElement: Element = listElement;+ while (previousElement) {+ selectsElement.push(previousElement);+ if (undoOperations[0].id === previousElement.getAttribute("data-node-id")) {+ break;+ }+ previousElement = previousElement.previousElementSibling;+ }+ turnsIntoOneTransaction({+ protyle,+ selectsElement: selectsElement.reverse(),+ type: "BlocksMergeSuperBlock",+ level: "row"+ });+ }focusByWbr(protyle.wysiwyg.element, range);return;}