Skip to content

Commit

Permalink
EZP-31405 - fix embed image link removal (#1255)
Browse files Browse the repository at this point in the history
Co-authored-by: Dariusz Szut <dew326@gmail.com>
  • Loading branch information
ITernovtsii and dew326 authored Jun 2, 2020
1 parent 16a7f13 commit 7190916
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,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));
Expand Down

0 comments on commit 7190916

Please # to comment.