2 $.ui.dialog.prototype.options.closeOnEscape = false;
3 $.widget('wp.wpdialog', $.ui.dialog, {
4 // Work around a bug in jQuery UI 1.9.1.
5 // http://bugs.jqueryui.com/ticket/8805
6 widgetEventPrefix: 'wpdialog',
11 // Initialize tinyMCEPopup if it exists and 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') ) {
23 // WebKit leaves focus in the TinyMCE editor unless we shift focus.
25 this._trigger('refresh');