Changeset 2208 for FCKeditor/branches

Show
Ignore:
Timestamp:
2008-07-11 13:18:07 (5 months ago)
Author:
martinkou
Message:

Fixed the issue where cross-container selections can result in non-selected DIV containers to be modified by the DIV container dialog as well.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/features/div_container/editor/_source/internals/fckdomtools.js

    r2207 r2208  
    10421042                while ( currentNode && currentNode != endNode ) 
    10431043                { 
    1044                         var path = new FCKElementPath( currentNode ) ; 
    1045                         var blockLimit = path.BlockLimit ; 
    1046                         if ( blockLimit && blockLimit.nodeName.IEquals( 'div' ) && currentBlocks.IndexOf( blockLimit ) == -1 ) 
    1047                                 currentBlocks.push( blockLimit ) ; 
     1044                        if ( currentNode.nodeType != 3 || !/^[ \t\n]*$/.test( currentNode.nodeValue ) ) 
     1045                        { 
     1046                                var path = new FCKElementPath( currentNode ) ; 
     1047                                var blockLimit = path.BlockLimit ; 
     1048                                if ( blockLimit && blockLimit.nodeName.IEquals( 'div' ) && currentBlocks.IndexOf( blockLimit ) == -1 ) 
     1049                                        currentBlocks.push( blockLimit ) ; 
     1050                        } 
    10481051 
    10491052                        currentNode = FCKDomTools.GetNextSourceNode( currentNode ) ;