Ticket #15485: ie8.fixes.diff
File ie8.fixes.diff, 5.8 KB (added by , 14 years ago) |
---|
-
wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js
40 40 // Clear previously selected links 41 41 rivers.elements.find('.selected').removeClass('selected'); 42 42 // Clear fields and focus the URL field 43 inputs.url.val('http://') .focus();43 inputs.url.val('http://'); 44 44 inputs.title.val(''); 45 45 46 tinyMCEPopup.restoreSelection(); 46 47 // If link exists, select proper values. 47 48 if ( e = ed.dom.getParent(ed.selection.getNode(), 'A') ) { 48 49 // Set URL and description. … … 52 53 if ( "_blank" == ed.dom.getAttrib(e, 'target') ) 53 54 inputs.openInNewTab.attr('checked','checked'); 54 55 } 56 tinyMCEPopup.storeSelection(); 57 // If the focus is moved above the selection changes, 58 // IE will show a flashing cursor over the dialog. 59 inputs.url.focus(); 55 60 // Load the most recent results if this is the first time opening the panel. 56 61 if ( ! rivers.recent.ul.children().length ) 57 62 rivers.recent.ajax(); … … 64 69 href : inputs.url.val(), 65 70 title : inputs.title.val(), 66 71 target : inputs.openInNewTab.attr('checked') ? '_blank' : '' 67 }, e, children,b,72 }, e, b, 68 73 defaultContent = attrs.title ? attrs.title : attrs.href; 69 74 70 75 tinyMCEPopup.restoreSelection(); 71 76 e = ed.dom.getParent(ed.selection.getNode(), 'A'); 72 77 73 78 // If the values are empty... 74 if ( ! attrs.href ) {79 if ( ! attrs.href || attrs.href == 'http://' ) { 75 80 // ...and nothing is selected, we should return 76 81 if ( ed.selection.isCollapsed() ) { 77 82 tinyMCEPopup.close(); … … 114 119 115 120 children = $(e).children(); 116 121 // Don't move caret if selection was image 117 if ( children.length != 1 || children.first().not('img')) {122 if (e.childNodes.length != 1 || e.firstChild.nodeName != 'IMG') { 118 123 ed.focus(); 119 124 ed.selection.select(e); 120 125 ed.selection.collapse(0); -
wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.js
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"}}});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; if(tinyMCEPopup){tinyMCEPopup.init()}c.dialog({title:e.title,width:e.width,height:e.height,modal:true,dialogClass:"wp-dialog"})},close:a(function(){this.element.dialog("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"}}});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();if(tinyMCEPopup){tinyMCEPopup.init()}c.dialog({title:e.title,width:e.width,height:e.height,modal:true,dialogClass:"wp-dialog"})},close:a(function(){this.element.dialog("close")}),});tinymce.PluginManager.add("wpdialogs",tinymce.plugins.WPDialogs)})(jQuery); 2 No newline at end of file -
wp-includes/js/tinymce/plugins/wpdialogs/js/popup.dev.js
48 48 } 49 49 }; 50 50 51 t.isWindow = !t.getWindowArg('mce_inline');51 t.isWindow = false; 52 52 t.id = t.features.id; 53 53 t.editor.windowManager.onOpen.dispatch(t.editor.windowManager, window); 54 54 }, -
wp-includes/js/tinymce/plugins/wpdialogs/editor_plugin.dev.js
59 59 t.onOpen.dispatch(t, f, p); 60 60 t.element = t.windows[ f.id ] = element; 61 61 62 // Store selection 63 t.bookmark = t.editor.selection.getBookmark(); 64 62 65 if ( tinyMCEPopup ) 63 66 tinyMCEPopup.init(); 64 67 -
wp-includes/css/jquery-ui-dialog.dev.css
138 138 .ui-widget-overlay { 139 139 background-color: #000; 140 140 opacity: 0.6; 141 filter: alpha(opacity=60); 141 142 } 143 No newline at end of file