Ticket #6248: 6248.patch
File 6248.patch, 1.1 KB (added by , 13 years ago) |
---|
-
_source/plugins/htmldataprocessor/plugin.js
38 38 } 39 39 } 40 40 41 function blockNeedsExtension( block )41 function blockNeedsExtension( block, fromSource ) 42 42 { 43 // 1. For IE version >=8, empty blocks are displayed correctly themself in wysiwiyg; 44 // 2. For the rest, at least table cell and list item need no filler space. 45 // (#6248) 46 if ( fromSource && CKEDITOR.env.ie && 47 ( document.documentMode > 7 48 || block.name in CKEDITOR.dtd.tr 49 || block.name in CKEDITOR.dtd.$listItem ) ) 50 return false; 51 43 52 var lastChild = lastNoneSpaceChild( block ); 44 53 45 54 return !lastChild … … 53 62 { 54 63 trimFillers( block, true ); 55 64 56 if ( blockNeedsExtension( block ) )65 if ( blockNeedsExtension( block, true ) ) 57 66 { 58 67 if ( CKEDITOR.env.ie ) 59 68 block.add( new CKEDITOR.htmlParser.text( '\xa0' ) );