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:
parent
f3339ff9f0
commit
c2cf25a75a
@ -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' );
|
||||
}
|
||||
} );
|
||||
|
Loading…
Reference in New Issue
Block a user