2
$.widget('wp.wpdialog', $.ui.dialog, {
4
// Add beforeOpen event.
5
if ( this.isOpen() || false === this._trigger('beforeOpen') ) {
11
// WebKit leaves focus in the TinyMCE editor unless we shift focus.
13
this._trigger('refresh');
17
$.wp.wpdialog.prototype.options.closeOnEscape = false;