Ticket #2287: table_spacing_empty_paragraph.patch

File table_spacing_empty_paragraph.patch, 0.7 KB (added by dshafik, 21 months ago)

Table Spacing Patch

  • 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 (FCKDomTools.CheckIsEmptyElement(oFixedBlock, function ( element ) { if ( element.getAttribute('_fck_bookmark') == 'true' ) { return false; } else { return true; } })) 
     872                        if ( FCKBrowserInfo.IsGeckoLike ) 
     873                                FCKTools.AppendBogusBr( oFixedBlock ) ; 
    870874 
    871875                // Insert the fixed block into the DOM. 
    872876                this.InsertNode( oFixedBlock ) ;