Changeset 1080
- Timestamp:
- 2007-11-14 06:36:37 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/classes/fckdomrange.js
r1079 r1080 464 464 // If the object pointed to by the startOffset and endOffset are text nodes, we need 465 465 // to backtrack and add in the text offset to the bookmark addresses. 466 if ( addrStart.nodeType == 1 && addrStart.childNodes[bookmark.Start[0]] .nodeType == 3 )466 if ( addrStart.nodeType == 1 && addrStart.childNodes[bookmark.Start[0]] && addrStart.childNodes[bookmark.Start[0]].nodeType == 3 ) 467 467 { 468 468 var curNode = addrStart.childNodes[bookmark.Start[0]] ; … … 476 476 bookmark.Start[0] = offset ; 477 477 } 478 if ( addrEnd.nodeType == 1 && addrEnd.childNodes[bookmark.End[0]] .nodeType == 3 )478 if ( addrEnd.nodeType == 1 && addrEnd.childNodes[bookmark.End[0]] && addrEnd.childNodes[bookmark.End[0]].nodeType == 3 ) 479 479 { 480 480 var curNode = addrEnd.childNodes[bookmark.End[0]] ;