mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 00:26:22 +00:00
fix(editor): arreglar problema con el coso de imágenes
This commit is contained in:
parent
269db4cd09
commit
79197956f2
1 changed files with 1 additions and 1 deletions
|
@ -56,12 +56,12 @@ function fixContent (editor: Editor, node: Element = editor.contentEl): void {
|
|||
el => el.contains(node)
|
||||
)
|
||||
if (!parentEl) throw new Error('no encontré lx pariente')
|
||||
targetEl.insertBefore(figureEl, parentEl)
|
||||
|
||||
const innerEl = figureEl.querySelector('[data-multimedia-inner]')
|
||||
if (!innerEl) throw new Error('Raro.')
|
||||
figureEl.replaceChild(node, innerEl)
|
||||
|
||||
targetEl.insertBefore(figureEl, parentEl)
|
||||
node = figureEl
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue