Changeset 2206 for FCKeditor/branches
- Timestamp:
- 2008-07-11 12:08:10 (5 months ago)
- Location:
- FCKeditor/branches/features/div_container/editor
- Files:
-
- 3 modified
-
dialog/fck_div.html (modified) (1 diff)
-
_source/classes/fckdomrange.js (modified) (1 diff)
-
_source/internals/fckdomtools.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/branches/features/div_container/editor/dialog/fck_div.html
r2199 r2206 138 138 GetE( 'txtId' ).value = target.id ; 139 139 GetE( 'txtLang' ).value = target.lang ; 140 GetE( 'txtInlineStyle').value = target. getAttribute( 'style' );140 GetE( 'txtInlineStyle').value = target.style.cssText ; 141 141 GetE( 'txtTitle' ).value = target.title ; 142 142 GetE( 'selLangDir').value = target.dir || GetNearestAncestorDirection( target ) ; -
FCKeditor/branches/features/div_container/editor/_source/classes/fckdomrange.js
r2122 r2206 67 67 } 68 68 else if ( eEndNode.nodeType == 1 ) 69 eEndNode = eEndNode.childNodes[ innerRange.endOffset - 1 ] ; 69 { 70 if ( innerRange.endContainer != innerRange.startContainer || innerRange.endOffset != innerRange.startOffset ) 71 eEndNode = eEndNode.childNodes[ innerRange.endOffset - 1 ] ; 72 else 73 eEndNode = eEndNode.childNodes[ innerRange.endOffset ] ; 74 } 70 75 71 76 this.EndNode = eEndNode ; -
FCKeditor/branches/features/div_container/editor/_source/internals/fckdomtools.js
r2205 r2206 1032 1032 var endNode = range.EndNode ; 1033 1033 var currentNode = startNode ; 1034 1034 1035 1035 if ( startNode == endNode ) 1036 1036 { 1037 while ( endNode. lastChild )1037 while ( endNode.nodeType == 1 && endNode.lastChild ) 1038 1038 endNode = endNode.lastChild ; 1039 1039 endNode = FCKDomTools.GetNextSourceElement( endNode ) ; 1040 1040 } 1041 1041 1042 while ( currentNode != endNode && currentNode != endNode.parentNode )1042 while ( currentNode && currentNode != endNode && currentNode != endNode.parentNode ) 1043 1043 { 1044 1044 var path = new FCKElementPath( currentNode ) ; 1045 1045 var blockLimit = path.BlockLimit ; 1046 if ( blockLimit && blockLimit.nodeName.IEquals( 'div' ) && currentBlocks. indexOf( blockLimit ) == -1 )1046 if ( blockLimit && blockLimit.nodeName.IEquals( 'div' ) && currentBlocks.IndexOf( blockLimit ) == -1 ) 1047 1047 currentBlocks.push( blockLimit ) ; 1048 1048