Changeset 6874


Ignore:
Timestamp:
05/06/11 15:10:38 (4 years ago)
Author:
garry.yao
Message:

#7811: Regression of [6328] cursor position correction after delete rows.

File:
1 edited

Legend:

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

    r6559 r6874  
    216216                        // 2. Into previous sibling row if any; 
    217217                        // 3. Into table's parent element if it's the very last row. 
    218                         var cursorPosition =  new CKEDITOR.dom.element( rows[ startRowIndex ] || rows[ startRowIndex - 1 ] || table.$.parentNode ); 
     218                        var cursorPosition =  new CKEDITOR.dom.element( rows[ endRowIndex + 1 ] || ( startRowIndex > 0 ? rows[  startRowIndex - 1 ] : null ) || table.$.parentNode ); 
    219219 
    220220                        for ( i = rowsToDelete.length ; i >= 0 ; i-- ) 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy