Changeset 600
- Timestamp:
- 2007-07-31 09:59:25 (18 months ago)
- Location:
- FCKeditor/trunk/editor/_source/internals
- Files:
-
- 2 modified
-
fckdomtools.js (modified) (1 diff)
-
fckxhtml.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fckdomtools.js
r526 r600 37 37 TrimNode : function( node, ignoreEndBRs ) 38 38 { 39 // If the node is a <pre>, ignore. Whitespaces in the beginning or tail of a <pre> tag40 // shows up as in HTML code so we shouldn't delete them.41 if ( node.nodeType == 1 && node.tagName.toLowerCase() == 'pre' )42 return ;43 39 this.LTrimNode( node ) ; 44 40 this.RTrimNode( node, ignoreEndBRs ) ; -
FCKeditor/trunk/editor/_source/internals/fckxhtml.js
r525 r600 138 138 // Trim block elements. This is also needed to avoid Firefox leaving extra 139 139 // BRs at the end of them. 140 if ( isBlockElement )140 if ( isBlockElement && htmlNode.tagName && htmlNode.tagName.toLowerCase() != 'pre' ) 141 141 FCKDomTools.TrimNode( xmlNode, true ) ; 142 142