Vanessa 2025-06-27 11:42:19 +08:00
parent d77d29cf78
commit bb77dfa5a4

View file

@ -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);
}
});