JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3.1
[ckeditor.git] / _source / plugins / find / dialogs / find.js
index dd7048c..8b66839 100644 (file)
@@ -324,7 +324,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                nextRangeWalker,\r
                                                cursors = this._.cursors;\r
 \r
-                               if ( ( lastCursor = cursors[ cursors.length - 1 ] ) )\r
+                               if ( ( lastCursor = cursors[ cursors.length - 1 ] ) && lastCursor.textNode )\r
                                        nextRangeWalker = new characterWalker( getRangeAfterCursor( lastCursor ) );\r
                                // In case it's an empty range (no cursors), figure out next range from walker (#4951).\r
                                else\r