TinyMCE: do not trigger execCommand on loading, it focuses the editor in Chrome.

Fixes #37243.
Built from https://develop.svn.wordpress.org/trunk@37927


git-svn-id: http://core.svn.wordpress.org/trunk@37868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2016-06-30 15:18:27 +00:00
parent b39bddfd2a
commit 21ae71eaa1
4 changed files with 3 additions and 3 deletions

View File

@ -569,7 +569,7 @@
toolbar.$el.find( '.wp-link-preview a' ).removeClass( 'wplink-url-error' ).attr( 'title', null ); toolbar.$el.find( '.wp-link-preview a' ).removeClass( 'wplink-url-error' ).attr( 'title', null );
} }
} }
} else { } else if ( editToolbar.visible() ) {
editor.execCommand( 'wp_link_cancel' ); editor.execCommand( 'wp_link_cancel' );
} }
} ); } );

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.6-beta1-37926'; $wp_version = '4.6-beta1-37927';
/** /**
* 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.