X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Ffind%2Fdialogs%2Ffind.js;h=8b668397955bb453ab4d7a582e836d786561506a;hp=dd7048cf76f9017f966a076a658bd529118236d7;hb=66f4ae0bf0280ed56bf7c0f4ab175424dd1d47a0;hpb=f8fc585c18d287eb325c575596d183122486b641 diff --git a/_source/plugins/find/dialogs/find.js b/_source/plugins/find/dialogs/find.js index dd7048c..8b66839 100644 --- a/_source/plugins/find/dialogs/find.js +++ b/_source/plugins/find/dialogs/find.js @@ -324,7 +324,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license nextRangeWalker, cursors = this._.cursors; - if ( ( lastCursor = cursors[ cursors.length - 1 ] ) ) + if ( ( lastCursor = cursors[ cursors.length - 1 ] ) && lastCursor.textNode ) nextRangeWalker = new characterWalker( getRangeAfterCursor( lastCursor ) ); // In case it's an empty range (no cursors), figure out next range from walker (#4951). else