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/16611

Vanessae4e1a44cf844
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index a02d42663a..ffec4eff01 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -354,6 +354,9 @@ const updateBlock = (updateElements: Element[], protyle: IProtyle, operation: IO
});
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${operation.id}"]`)).find(item => {
if (!isInEmbedBlock(item)) {
+ if (item.getAttribute("data-type") === "NodeBlockQueryEmbed") {
+ item.removeAttribute("data-render");
+ }
updateElements[0] = item;
return true;
}