mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
cbbd8e831d
commit
de090512ad
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue