Changeset 6355 for CKEditor/trunk


Ignore:
Timestamp:
01/20/2011 04:12:30 PM (4 years ago)
Author:
garry.yao
Message:

#6999: Fixing a regression in [6337] which fails text selection around empty paragraph.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/_source/plugins/selection/plugin.js

    r6350 r6355  
    648648                                                        // Actual range anchor right beside test range at the inner boundary of text node. 
    649649                                                        if ( !distance ) 
    650                                                                 return { container : parent, offset : getNodeIndex( child ) + ( position > 0 ? -1 : 1 ) }; 
     650                                                                return { container : parent, offset : getNodeIndex( child ) + ( position > 0 ? 0 : 1 ) }; 
    651651 
    652652                                                        // Start the measuring until distance overflows, meanwhile count the text nodes. 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy