Changeset 600

Show
Ignore:
Timestamp:
2007-07-31 09:59:25 (18 months ago)
Author:
martinkou
Message:

Fix for #328 : Removed the <pre> tag checking logic at FCKDomTools.TrimNode().

Location:
FCKeditor/trunk/editor/_source/internals
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fckdomtools.js

    r526 r600  
    3737        TrimNode : function( node, ignoreEndBRs ) 
    3838        { 
    39                 // If the node is a <pre>, ignore. Whitespaces in the beginning or tail of a <pre> tag 
    40                 // shows up as in HTML code so we shouldn't delete them. 
    41                 if ( node.nodeType == 1 && node.tagName.toLowerCase() == 'pre' ) 
    42                         return ; 
    4339                this.LTrimNode( node ) ; 
    4440                this.RTrimNode( node, ignoreEndBRs ) ; 
  • FCKeditor/trunk/editor/_source/internals/fckxhtml.js

    r525 r600  
    138138        // Trim block elements. This is also needed to avoid Firefox leaving extra 
    139139        // BRs at the end of them. 
    140         if ( isBlockElement ) 
     140        if ( isBlockElement && htmlNode.tagName && htmlNode.tagName.toLowerCase() != 'pre' ) 
    141141                FCKDomTools.TrimNode( xmlNode, true ) ; 
    142142