X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_source%2Fplugins%2Ffind%2Fdialogs%2Ffind.js;h=8b668397955bb453ab4d7a582e836d786561506a;hb=66f4ae0bf0280ed56bf7c0f4ab175424dd1d47a0;hp=dd7048cf76f9017f966a076a658bd529118236d7;hpb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;p=ckeditor.git 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