Skip to content

Commit

Permalink
EZP-31405: fix embed image link removal (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 committed Jun 3, 2020
1 parent 0c598b7 commit 9014ca0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 9014ca0

Please sign in to comment.