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

Vanessa785ac5735208
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index 489d2f3815..7d2fb60f4b 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -275,7 +275,7 @@ const updateEmbed = (protyle: IProtyle, operation: IOperation) => {
tempElement.content.querySelectorAll(".protyle-wysiwyg--select").forEach(selectItem => {
selectItem.classList.remove("protyle-wysiwyg--select");
});
- const wbrElement = tempElement.querySelector("wbr");
+ const wbrElement = tempElement.content.querySelector("wbr");
if (wbrElement) {
wbrElement.remove();
}