Ticket #6999: 6999.patch

File 6999.patch, 691 bytes (added by Garry Yao, 13 years ago)
  • _source/plugins/selection/plugin.js

     
    647649
    648650                                                        // Actual range anchor right beside test range at the inner boundary of text node.
    649651                                                        if ( !distance )
    650                                                                 return { container : parent, offset : getNodeIndex( child ) + ( position > 0 ? -1 : 1 ) };
     652                                                                return { container : parent, offset : getNodeIndex( child ) + ( position > 0 ? 0 : 1 ) };
    651653
    652654                                                        // Start the measuring until distance overflows, meanwhile count the text nodes.
    653655                                                        while ( distance > 0 )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy