Ticket #325: fix empty p.patch
File fix empty p.patch, 682 bytes (added by , 18 years ago) |
---|
-
fckdomtools.js
78 78 if ( eChildNode.nodeName.toUpperCase() == 'BR' && ( ignoreEndBRs || eChildNode.getAttribute( 'type', 2 ) == '_moz' ) ) 79 79 { 80 80 node.removeChild( eChildNode ) ; 81 82 // If the node now is empty then append a to visually keep the same appearance (#325) 83 if ( node.lastChild === null && FCKConfig.FillEmptyBlocks ) 84 node.appendChild( FCKTools.GetElementDocument( node ).createTextNode( String.fromCharCode(160) ) ); 81 85 continue ; 82 86 } 83 87 break ;