* @output wp-includes/js/wpdialog.js
* Wrap the jQuery UI Dialog open function remove focus from tinyMCE.
$.widget('wp.wpdialog', $.ui.dialog, {
if ( this.isOpen() || false === this._trigger('beforeOpen') ) {
// WebKit leaves focus in the TinyMCE editor unless we shift focus.
this._trigger('refresh');
$.wp.wpdialog.prototype.options.closeOnEscape = false;