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/12249 2

Vanessade090512ad25
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index 37c3da3011..489d2f3815 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -268,7 +268,7 @@ const updateEmbed = (protyle: IProtyle, operation: IOperation) => {
const updateHTML = (item: Element, html: string) => {
const tempElement = document.createElement("template");
- tempElement.innerHTML = html;
+ tempElement.innerHTML = protyle.lute.SpinBlockDOM(html);
tempElement.content.querySelectorAll('[contenteditable="true"]').forEach(editItem => {
editItem.setAttribute("contenteditable", "false");
});