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

Vanessa9c970b1bdc17
diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts
index 1af8ab354a..302d51fb10 100644
--- a/app/src/protyle/wysiwyg/input.ts
+++ b/app/src/protyle/wysiwyg/input.ts
@@ -233,7 +233,9 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
protyle.toolbar.showRender(protyle, realElement);
} else if (realType === "NodeBlockQueryEmbed") {
blockRender(protyle, realElement);
- protyle.toolbar.showRender(protyle, realElement);
+ if (!realElement.getAttribute("data-content")) {
+ protyle.toolbar.showRender(protyle, realElement);
+ }
hideElements(["hint"], protyle);
} else if (realType === "NodeThematicBreak" && focusHR) {
focusBlock(blockElement);