mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 15:47:38 +02:00
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:
parent
7d43d71800
commit
a89f203b21
@ -101,7 +101,7 @@
|
|||||||
|
|
||||||
function getSelectedLink() {
|
function getSelectedLink() {
|
||||||
var href, html,
|
var href, html,
|
||||||
node = editor.selection.getNode(),
|
node = editor.selection.getStart(),
|
||||||
link = editor.dom.getParent( node, 'a[href]' );
|
link = editor.dom.getParent( node, 'a[href]' );
|
||||||
|
|
||||||
if ( ! link ) {
|
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
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user