Ticket #2287: 2287.patch

File 2287.patch, 833 bytes (added by Martin Kou, 16 years 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 ) ;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy