mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 07:18:49 +01:00
This commit is contained in:
parent
d77d29cf78
commit
bb77dfa5a4
1 changed files with 1 additions and 1 deletions
|
|
@ -294,7 +294,7 @@ const updateEmbed = (protyle: IProtyle, operation: IOperation) => {
|
|||
} else {
|
||||
item.querySelectorAll(".protyle-wysiwyg__embed").forEach(embedBlockItem => {
|
||||
const newTempElement = allTempElement.content.querySelector(`[data-node-id="${embedBlockItem.getAttribute("data-id")}"]`);
|
||||
if (newTempElement) {
|
||||
if (newTempElement && !isInEmbedBlock(newTempElement)) {
|
||||
updateHTML(embedBlockItem.querySelector("[data-node-id]"), newTempElement.outerHTML);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue