WordPress.org

Make WordPress Core

Ticket #16077: 16077.diff

File 16077.diff, 3.8 KB (added by garyc40, 3 years ago)

there's a patch for that

  • wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.dev.js

    diff --git wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.dev.js wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.dev.js
    index bdc63dd..44c4e2a 100644
     
    5454 
    5555        tinymce.create('tinymce.WPWindowManager:tinymce.InlineWindowManager', { 
    5656                WPWindowManager : function(ed) { 
    57                         this.parent(ed); 
     57                        var t = this; 
     58                        t.parent(ed); 
     59 
     60                        $(window).resize([t], t._window_resize); 
     61                }, 
     62                 
     63                _window_resize : function(e) { 
     64                        var t = e.data[0]; 
     65 
     66                        if (t.element) { 
     67                                t.element.wpdialog('option', 'position', 'center'); 
     68                        } 
    5869                }, 
    5970 
    6071                open : function(f, p) { 
     
    93104 
    94105        // Register plugin 
    95106        tinymce.PluginManager.add('wpdialogs', tinymce.plugins.WPDialogs); 
    96 })(jQuery); 
    97  
     107})(jQuery); 
     108 No newline at end of file 
  • wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.js

    diff --git wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.js wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.js
    index fc621f1..18e5039 100644
     
    1 (function(b){var a=function(c){return function(){if(this.features.wpDialog){return c.apply(this,arguments)}else{return this.parent.apply(this,arguments)}}};tinymce.create("tinymce.plugins.WPDialogs",{init:function(c,d){c.onBeforeRenderUI.add(function(){c.windowManager=new tinymce.WPWindowManager(c)})},getInfo:function(){return{longname:"WPDialogs",author:"WordPress",authorurl:"http://wordpress.org",infourl:"http://wordpress.org",version:"0.1"}}});b(document).ready(function(){b.widget("wp.wpdialog",b.ui.dialog,{open:function(){if(tinyMCEPopup){tinyMCEPopup.init()}b.ui.dialog.prototype.open.apply(this,arguments);this.element.focus();this._trigger("refresh")}})});tinymce.create("tinymce.WPWindowManager:tinymce.InlineWindowManager",{WPWindowManager:function(c){this.parent(c)},open:function(e,g){var d=this,c;if(!e.wpDialog){return this.parent(e,g)}else{if(!e.id){return}}c=b("#"+e.id);if(!c.length){return}d.features=e;d.params=g;d.onOpen.dispatch(d,e,g);d.element=d.windows[e.id]=c;d.bookmark=d.editor.selection.getBookmark(1);c.wpdialog({title:e.title,width:e.width,height:e.height,modal:true,dialogClass:"wp-dialog",zIndex:300000})},close:a(function(){this.element.wpdialog("close")})});tinymce.PluginManager.add("wpdialogs",tinymce.plugins.WPDialogs)})(jQuery); 
    2  No newline at end of file 
     1(function(b){var a=function(c){return function(){if(this.features.wpDialog){return c.apply(this,arguments)}else{return this.parent.apply(this,arguments)}}};tinymce.create("tinymce.plugins.WPDialogs",{init:function(c,d){c.onBeforeRenderUI.add(function(){c.windowManager=new tinymce.WPWindowManager(c)})},getInfo:function(){return{longname:"WPDialogs",author:"WordPress",authorurl:"http://wordpress.org",infourl:"http://wordpress.org",version:"0.1"}}});b(document).ready(function(){b.widget("wp.wpdialog",b.ui.dialog,{open:function(){if(tinyMCEPopup){tinyMCEPopup.init()}b.ui.dialog.prototype.open.apply(this,arguments);this.element.focus();this._trigger("refresh")}})});tinymce.create("tinymce.WPWindowManager:tinymce.InlineWindowManager",{WPWindowManager:function(c){var d=this;d.parent(c);b(window).resize([d],d._window_resize)},_window_resize:function(d){var c=d.data[0];if(c.element){c.element.wpdialog("option","position","center")}},open:function(e,g){var d=this,c;if(!e.wpDialog){return this.parent(e,g)}else{if(!e.id){return}}c=b("#"+e.id);if(!c.length){return}d.features=e;d.params=g;d.onOpen.dispatch(d,e,g);d.element=d.windows[e.id]=c;d.bookmark=d.editor.selection.getBookmark(1);c.wpdialog({title:e.title,width:e.width,height:e.height,modal:true,dialogClass:"wp-dialog",zIndex:300000})},close:a(function(){this.element.wpdialog("close")})});tinymce.PluginManager.add("wpdialogs",tinymce.plugins.WPDialogs)})(jQuery); 
     2 No newline at end of file