Ticket #3477: 3477.patch
File 3477.patch, 1.0 KB (added by , 15 years ago) |
---|
-
_source/core/dom/range.js
257 257 endNode.remove(); 258 258 }; 259 259 260 var inlineChildReqElements = { abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1 };261 260 262 261 // Creates the appropriate node evaluator for the dom walker used inside 263 262 // check(Start|End)OfBlock. … … 277 276 { 278 277 // If there are non-empty inline elements (e.g. <img />), then we're not 279 278 // at the start. 280 if ( !inlineChildReqElements[ node.getName() ] )279 if ( CKEDITOR.dtd.$empty[ node.getName() ] ) 281 280 { 282 281 // If we're working at the end-of-block, forgive the first <br />. 283 282 if ( !isStart && node.getName() == 'br' && !hadBr ) … … 285 284 else 286 285 return false; 287 286 } 287 else 288 return false; 288 289 } 289 290 }; 290 291 }