Ticket #5274: 5274_2.patch
File 5274_2.patch, 1.7 KB (added by , 14 years ago) |
---|
-
_source/core/tools.js
691 691 catch (e) {} 692 692 } 693 693 return returnValue; 694 }, 695 696 /** 697 * Reflow to irk the browser into a correct layout. 698 * @param items 699 */ 700 redraw : function( items ) 701 { 702 items instanceof CKEDITOR.dom.element && ( items = new CKEDITOR.dom.nodeList( [ items.$ ] ) ); 703 704 for ( var i = 0, count = items.count(); i < count; i++ ) 705 items.getItem( i ).setStyle( 'display', 'block' ); 706 707 setTimeout( function() 708 { 709 for ( var i = 0, count = items.count(); i < count; i++ ) 710 items.getItem( i ).removeStyle( 'display' ); 711 }, 0 ); 694 712 } 695 713 }; 696 714 })(); -
_source/plugins/templates/dialogs/templates.js
41 41 '</a>' ); 42 42 43 43 // Build the inner HTML of our new item DIV. 44 var html = '<table style="width:350px;"class="cke_tpl_preview"><tr>';44 var html = '<table class="cke_tpl_preview"><tr>'; 45 45 46 46 if ( template.image && imagesPath ) 47 47 html += '<td class="cke_tpl_preview_img"><img src="' + CKEDITOR.getUrl( imagesPath + template.image ) + '"></td>'; … … 207 207 if ( templates.length ) 208 208 { 209 209 renderTemplatesList( listContainer, templates ); 210 CKEDITOR.env.ie6Compat && CKEDITOR.tools.redraw( listContainer.getElementsByTag( 'img' ) ); 211 210 212 templatesListField.focus(); 211 213 } 212 214 else