Docs: Improve JSDoc for `wp-includes.js/wpdialog.js`.
Props igorsch, LisanneKluitmans, manuelaugustin. Fixes #43947. git-svn-id: https://develop.svn.wordpress.org/trunk@43144 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3efc98cae6
commit
ad7b569c1a
|
@ -1,3 +1,6 @@
|
|||
/*
|
||||
* Wrap the jQuery UI Dialog open function remove focus from tinyMCE.
|
||||
*/
|
||||
( function($) {
|
||||
$.widget('wp.wpdialog', $.ui.dialog, {
|
||||
open: function() {
|
||||
|
@ -8,6 +11,7 @@
|
|||
|
||||
// Open the dialog.
|
||||
this._super();
|
||||
|
||||
// WebKit leaves focus in the TinyMCE editor unless we shift focus.
|
||||
this.element.focus();
|
||||
this._trigger('refresh');
|
||||
|
|
Loading…
Reference in New Issue