Skip to content

Commit

Permalink
Merge pull request #859 from matuzalemsteles/pr-1
Browse files Browse the repository at this point in the history
#858 getting right element for IE
  • Loading branch information
jbalsas authored Jun 12, 2018
2 parents c1d3663 + 7978024 commit 044ae5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@
return selectedElement;
}

if (selectedElement && CKEDITOR.env.ie) {
return selectedElement.getChildren('a').getItem(0);
}

var range = selection.getRanges()[0];

if (range) {
Expand Down

0 comments on commit 044ae5d

Please sign in to comment.