Changeset 2204 for FCKeditor/branches
- Timestamp:
- 2008-07-11 11:17:49 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/branches/features/div_container/editor/_source/internals/fckdomtools.js
r2203 r2204 1031 1031 var startNode = range.StartNode ; 1032 1032 var endNode = range.EndNode ; 1033 var elementMarkers = {} ;1034 1033 var currentNode = startNode ; 1035 1034 … … 1045 1044 var path = new FCKElementPath( currentNode ) ; 1046 1045 var blockLimit = path.BlockLimit ; 1047 if ( blockLimit && blockLimit.nodeName.IEquals( 'div' ) && !blockLimit['_fckdivincluded'] )1048 {1046 if ( blockLimit && blockLimit.nodeName.IEquals( 'div' ) && !blockLimit['_fckdivincluded'] && 1047 currentBlocks.indexOf( blockLimit ) == -1 ) 1049 1048 currentBlocks.push( blockLimit ) ; 1050 FCKDomTools.SetElementMarker( elementMarkers, blockLimit, '_fckdivincluded', true ) ;1051 }1052 1049 1053 1050 currentNode = FCKDomTools.GetNextSourceElement( currentNode ) ; 1054 1051 } 1055 1056 FCKDomTools.ClearAllMarkers( elementMarkers ) ;1057 1052 1058 1053 return currentBlocks ;