diff --git a/src/bundle/Resources/public/js/OnlineEditor/core/base-richtext.js b/src/bundle/Resources/public/js/OnlineEditor/core/base-richtext.js index 776c08f1..e0139d40 100644 --- a/src/bundle/Resources/public/js/OnlineEditor/core/base-richtext.js +++ b/src/bundle/Resources/public/js/OnlineEditor/core/base-richtext.js @@ -66,6 +66,10 @@ importChildNodes(newElement, element.attributes[i], false); } + if (element.localName === 'a' && parent.dataset.ezelement === 'ezembed') { + element.setAttribute('data-cke-survive', '1'); + } + parent.appendChild(newElement); } else if (element.nodeType === Node.TEXT_NODE) { parent.appendChild(parent.ownerDocument.createTextNode(element.nodeValue));