Changeset 524

Show
Ignore:
Timestamp:
2007-07-25 02:54:57 (18 months ago)
Author:
martinkou
Message:

Fix for #328 and #346 : Simplified <pre> tag processing logic.

Files:
1 modified

Legend:

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

    r523 r524  
    398398                        var item = htmlNode.childNodes[i] ; 
    399399                        var val = item.nodeValue ; 
    400                         if ( i == 0 ) 
    401                                 val = "\r\n" + val ; 
    402                         if ( item.nodeType == 3 ) 
    403                                 node.appendChild( FCKXHtml.XML.createTextNode( FCKXHtml._AppendSpecialItem( val ) ) ) ; 
     400                        if ( item.nodeType == 3 && i == 0 ) 
     401                                node.appendChild( FCKXHtml.XML.createTextNode( FCKXHtml._AppendSpecialItem( "\r\n" + val ) ) ) ; 
    404402                        else 
    405403                                FCKXHtml._AppendNode( node, item ) ;