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:
@@ -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
Binary file not shown.
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user