2 $.ui.dialog.prototype.options.closeOnEscape = false;
3 $.widget("wp.wpdialog", $.ui.dialog, {
11 // Initialize tinyMCEPopup if it exists and is the editor is active.
12 if ( tinyMCEPopup && typeof tinyMCE != 'undefined' && ( ed = tinyMCE.activeEditor ) && !ed.isHidden() ) {
16 // Add beforeOpen event.
17 if ( this._isOpen || false === this._trigger('beforeOpen') ) {
22 $.ui.dialog.prototype.open.apply( this, arguments );
23 // WebKit leaves focus in the TinyMCE editor unless we shift focus.
25 this._trigger('refresh');