diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index 37c3da301..489d2f381 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"); });