Daniel 2025-03-17 23:15:04 +08:00
parent bb1a4b4119
commit 2763368643
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -272,7 +272,7 @@ const updateEmbed = (protyle: IProtyle, operation: IOperation) => {
item.querySelectorAll(`.protyle-wysiwyg__embed`).forEach(embedBlockItem => {
const newTempElement = tempElement.content.querySelector(`[data-node-id="${embedBlockItem.getAttribute("data-id")}"]`)
if (newTempElement) {
updateEmbedElements.push(embedBlockItem.firstElementChild)
updateEmbedElements.push(embedBlockItem.querySelector('[data-node-id]'))
html = newTempElement.outerHTML
}
});