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.

git-svn-id: https://develop.svn.wordpress.org/trunk@37301 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2016-04-22 19:10:18 +00:00
parent 5af20a3de3
commit 457f5ac6a0

View File

@ -488,7 +488,7 @@
edit = $linkNode.attr( 'data-wplink-edit' );
if ( href === '_wp_link_placeholder' || edit ) {
if ( edit && ! inputInstance.getURL() ) {
if ( href !== '_wp_link_placeholder' && ! inputInstance.getURL() ) {
inputInstance.setURL( href );
}