mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
f57ad14ac2
commit
2728815a1a
1 changed files with 2 additions and 2 deletions
|
|
@ -268,10 +268,10 @@ const updateEmbed = (protyle: IProtyle, operation: IOperation) => {
|
|||
const updateHTML = (item: Element, html: string) => {
|
||||
const tempElement = document.createElement("template");
|
||||
tempElement.innerHTML = html;
|
||||
tempElement.querySelectorAll('[contenteditable="true"]').forEach(editItem => {
|
||||
tempElement.content.querySelectorAll('[contenteditable="true"]').forEach(editItem => {
|
||||
editItem.setAttribute("contenteditable", "false");
|
||||
});
|
||||
tempElement.querySelectorAll(".protyle-wysiwyg--select").forEach(selectItem => {
|
||||
tempElement.content.querySelectorAll(".protyle-wysiwyg--select").forEach(selectItem => {
|
||||
selectItem.classList.remove("protyle-wysiwyg--select");
|
||||
})
|
||||
const wbrElement = tempElement.querySelector("wbr");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue