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/11771
Vanessaba160d1f4442
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.tsindex 0f6060e9a6..d55fe72748 100644--- a/app/src/protyle/hint/index.ts+++ b/app/src/protyle/hint/index.ts@@ -459,9 +459,8 @@ ${genHintItemHTML(item)}});updateAttrViewCellAnimation(cellElement, {type: "block",- id: newID,isDetached: false,- block: {content: realFileName}+ block: {content: realFileName, id: newID}});} else {const sourceId = tempElement.getAttribute("data-id");@@ -481,9 +480,8 @@ ${genHintItemHTML(item)}}]);updateAttrViewCellAnimation(cellElement, {type: "block",- id: sourceId,isDetached: false,- block: {content: tempElement.textContent}+ block: {content: tempElement.textContent, id: sourceId}});}return;diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.tsindex e07b6b1a86..3cacdc0292 100644--- a/app/src/protyle/render/av/cell.ts+++ b/app/src/protyle/render/av/cell.ts@@ -701,6 +701,8 @@ export const renderCellAttr = (cellElement: Element, value: IAVCellValue) => {}if (value.isDetached) {cellElement.setAttribute("data-detached", "true");+ } else {+ cellElement.removeAttribute("data-detached");}}};diff --git a/app/src/protyle/util/insertHTML.ts b/app/src/protyle/util/insertHTML.tsindex 0bd5a00658..1a4017af7f 100644--- a/app/src/protyle/util/insertHTML.ts+++ b/app/src/protyle/util/insertHTML.ts@@ -173,6 +173,11 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement:nextID: previousID,isDetached: selectCellElement.dataset.detached === "true",}]);+ updateAttrViewCellAnimation(selectCellElement, {+ type: "block",+ isDetached: false,+ block: {content: contenteditableElement.firstElementChild.textContent, id: sourceId}+ });return;}}