Ticket #43947: wpdialog.diff
File wpdialog.diff, 551 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/js/wpdialog.js
diff --git src/wp-includes/js/wpdialog.js src/wp-includes/js/wpdialog.js index 9f5c19b..8903fe2 100644
1 /** 2 * Wrap the jQuery UI Dialog open function to fix the TinyMCE focus. 3 */ 1 4 ( function($) { 2 5 $.widget('wp.wpdialog', $.ui.dialog, { 3 6 open: function() { … … 10 13 this._super(); 11 14 // WebKit leaves focus in the TinyMCE editor unless we shift focus. 12 15 this.element.focus(); 16 // Add refresh event. 13 17 this._trigger('refresh'); 14 18 } 15 19 });