TinyMCE: prevent showing the placeholder URL when adding a link and clicking more than once on the Insert Link button.
Props iseulde. Fixes #36637 for trunk. Built from https://develop.svn.wordpress.org/trunk@37301 git-svn-id: http://core.svn.wordpress.org/trunk@37267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0fd08986dd
commit
59d388038e
|
@ -488,7 +488,7 @@
|
||||||
edit = $linkNode.attr( 'data-wplink-edit' );
|
edit = $linkNode.attr( 'data-wplink-edit' );
|
||||||
|
|
||||||
if ( href === '_wp_link_placeholder' || edit ) {
|
if ( href === '_wp_link_placeholder' || edit ) {
|
||||||
if ( edit && ! inputInstance.getURL() ) {
|
if ( href !== '_wp_link_placeholder' && ! inputInstance.getURL() ) {
|
||||||
inputInstance.setURL( href );
|
inputInstance.setURL( href );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
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.6-alpha-37300';
|
$wp_version = '4.6-alpha-37301';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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