Ticket #2287: 2287.patch

File 2287.patch, 0.8 KB (added by martinkou, 21 months ago)
  • editor/_source/classes/fckdomrange.js

     
    867867                // Move the contents of the temporary range to the fixed block. 
    868868                this.ExtractContents().AppendTo( oFixedBlock ) ; 
    869869                FCKDomTools.TrimNode( oFixedBlock ) ; 
     870                 
     871                // If the fixed block is empty (not counting bookmark nodes) 
     872                // Add a <br /> inside to expand it. 
     873                if ( FCKDomTools.CheckIsEmptyElement(oFixedBlock, function( element ) { return element.getAttribute('_fck_bookmark') != 'true' ; } ) 
     874                                && FCKBrowserInfo.IsGeckoLike ) 
     875                                FCKTools.AppendBogusBr( oFixedBlock ) ; 
    870876 
    871877                // Insert the fixed block into the DOM. 
    872878                this.InsertNode( oFixedBlock ) ;