TinyMCE: fix selecting the link node after creating a link by pasting an URL.

Props iseulde.
Fixes #40818.

git-svn-id: https://develop.svn.wordpress.org/trunk@40801 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2017-05-19 18:54:42 +00:00
parent 11acb32acf
commit 33b0757fcf

View File

@ -101,7 +101,7 @@
function getSelectedLink() {
var href, html,
node = editor.selection.getNode(),
node = editor.selection.getStart(),
link = editor.dom.getParent( node, 'a[href]' );
if ( ! link ) {