Skip to content

Commit

Permalink
Issue #106: Link plugin (dialog) ignores overridden text (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela authored Jun 13, 2024
1 parent c7109ea commit a545b11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/plugins/backdroplink/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
clone.removeAttribute('data-mce-src');
a.appendChild(clone);
}
else if (node.nodeName === 'A' && node.childNodes.length) {
else if (node.nodeName === 'A' && node.children.length) {
// The link contains Dom elements, not only text - add back.
for (let i = 0; i < node.childNodes.length; i++) {
let clone = node.childNodes[i].cloneNode(true);
a.appendChild(clone);
Expand Down

0 comments on commit a545b11

Please sign in to comment.