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

Fixes #37243.

git-svn-id: https://develop.svn.wordpress.org/trunk@37927 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2016-06-30 15:17:12 +00:00
parent f3339ff9f0
commit c2cf25a75a
1 changed files with 1 additions and 1 deletions

View File

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