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

Props iseulde.
Fixes #40818.
Built from https://develop.svn.wordpress.org/trunk@40801


git-svn-id: http://core.svn.wordpress.org/trunk@40659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz
2017-05-19 18:55:44 +00:00
parent 7d43d71800
commit a89f203b21
4 changed files with 3 additions and 3 deletions

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 ) {

File diff suppressed because one or more lines are too long