Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/9892

Vanessa68b2f1fb9e56
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index a4ab741216..20748a2cdf 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -69,6 +69,9 @@ const genCellValueByElement = (colType: TAVCol, cellElement: HTMLElement) => {
}
};
}
+ if (colType === "block") {
+ cellValue.isDetached = cellElement.dataset.detached === "true";
+ }
return cellValue;
};
@@ -411,7 +414,8 @@ const updateCellValueByInput = (protyle: IProtyle, type: TAVCol, cellElements: H
keyID: colId,
rowID,
data: {
- [type]: inputValue
+ [type]: inputValue,
+ isDetached: true,
}
}, {
action: "doUpdateUpdated",
@@ -425,7 +429,8 @@ const updateCellValueByInput = (protyle: IProtyle, type: TAVCol, cellElements: H
keyID: colId,
rowID,
data: {
- [type]: oldValue
+ [type]: oldValue,
+ isDetached: true,
}
}, {
action: "doUpdateUpdated",