Index: /FCKeditor/trunk/_whatsnew.html =================================================================== --- /FCKeditor/trunk/_whatsnew.html (revision 2777) +++ /FCKeditor/trunk/_whatsnew.html (revision 2778) @@ -114,4 +114,7 @@ problems with FCKDomRangeIterator class which causes some commands to hang when applied to certain document structures. +
Index: /FCKeditor/trunk/editor/dialog/fck_replace.html =================================================================== --- /FCKeditor/trunk/editor/dialog/fck_replace.html (revision 2777) +++ /FCKeditor/trunk/editor/dialog/fck_replace.html (revision 2778) @@ -143,5 +143,5 @@ this._textNode = curNode ; - this._offset = curNode.length - 1 ; + this._offset = curNode && curNode.length - 1 ; return crossed ; }, @@ -421,4 +421,6 @@ function CheckIsWordSeparator( c ) { + if ( !c ) + return true; var code = c.charCodeAt( 0 ); if ( code >= 9 && code <= 0xd )