Ticket #6744: 6744.patch
File 6744.patch, 1000 bytes (added by , 12 years ago) |
---|
-
_source/core/dom/range.js
268 268 // check(Start|End)OfBlock. 269 269 function getCheckStartEndBlockEvalFunction( isStart ) 270 270 { 271 var hadBr = false, bookmarkEvaluator = CKEDITOR.dom.walker.bookmark( true ); 271 var hadBr = false, 272 bookmarkEvaluator = CKEDITOR.dom.walker.bookmark( true ), 273 noneWhitespaces = CKEDITOR.dom.walker.whitespaces( 1 ); 272 274 return function( node ) 273 275 { 274 276 // First ignore bookmark nodes. … … 289 291 { 290 292 // If we're working at the end-of-block, forgive the first <br /> in non-IE 291 293 // browsers. 292 if ( !isStart && !CKEDITOR.env.ie && node.getName() == 'br' && !hadBr ) 294 if ( !CKEDITOR.env.ie && node.getName() == 'br' 295 && !hadBr && ( !isStart || node.getNext( noneWhitespaces ) ) ) 293 296 hadBr = true; 294 297 else 295 298 return false;