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

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-beta1-40800';
$wp_version = '4.8-beta1-40801';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.