From 9c970b1bdc173f86e07a6b4584912f9228dca325 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 23 Apr 2025 10:33:39 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14672 --- app/src/protyle/wysiwyg/input.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts index 1af8ab354..302d51fb1 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);