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/16605
Vanessad30ba8049c81
diff --git a/app/src/block/util.ts b/app/src/block/util.tsindex 2d5acf277e..95b1df00fa 100644--- a/app/src/block/util.ts+++ b/app/src/block/util.ts@@ -1,6 +1,6 @@import {focusByWbr, getEditorRange} from "../protyle/util/selection";import {hasClosestBlock, hasClosestByClassName} from "../protyle/util/hasClosest";-import {getContenteditableElement, getTopAloneElement} from "../protyle/wysiwyg/getBlock";+import {getContenteditableElement, getParentBlock, getTopAloneElement} from "../protyle/wysiwyg/getBlock";import {genListItemElement, updateListOrder} from "../protyle/wysiwyg/list";import {transaction, turnsIntoOneTransaction, updateTransaction} from "../protyle/wysiwyg/transaction";import {scrollCenter} from "../util/highlightById";@@ -22,7 +22,7 @@ export const cancelSB = async (protyle: IProtyle, nodeElement: Element, range?:const id = nodeElement.getAttribute("data-node-id");const sbElement = nodeElement.cloneNode() as HTMLElement;sbElement.innerHTML = nodeElement.lastElementChild.outerHTML;- let parentID = nodeElement.parentElement?.getAttribute("data-node-id");+ let parentID = getParentBlock(nodeElement)?.getAttribute("data-node-id");// 缩放和反链需要接口获取if (!previousId && !parentID) {if (protyle.block.showAll || protyle.options.backlinkData) {