Changeset 499

Show
Ignore:
Timestamp:
2007-07-23 02:37:13 (3 years ago)
Author:
martinkou
Message:

Fix for #328 : FCKDomTools.TrimNode() will now ignore <pre> tags since the starting and ending whitespaces are visible for <pre> tags.

Files:
1 modified

Legend:

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

    r297 r499  
    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.tagName.toLowerCase() == 'pre' ) 
     42                        return ; 
    3943                this.LTrimNode( node ) ; 
    4044                this.RTrimNode( node, ignoreEndBRs ) ;