Ticket #5794: 5794_2.patch

File 5794_2.patch, 640 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/find/dialogs/find.js

     
    324324                                                nextRangeWalker,
    325325                                                cursors = this._.cursors;
    326326
    327                                 if ( ( lastCursor = cursors[ cursors.length - 1 ] ) )
     327                                if ( ( lastCursor = cursors[ cursors.length - 1 ] ) && lastCursor.textNode )
    328328                                        nextRangeWalker = new characterWalker( getRangeAfterCursor( lastCursor ) );
    329329                                // In case it's an empty range (no cursors), figure out next range from walker (#4951).
    330330                                else
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy