Skip to content

Commit

Permalink
Merge branch 't/10172'
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Apr 2, 2013
2 parents b499af1 + 1c0b8c7 commit 1aa6e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Expand Up @@ -3,6 +3,8 @@ CKEditor 4 Changelog

## CKEditor 4.1.1

* [#10172](http://dev.ckeditor.com/ticket/10172): Pressing delete/backspace in empty table cell moves cursor to next/previous cell.

## CKEditor 4.1

* [#10192](http://dev.ckeditor.com/ticket/10192): Closing lists with Enter key does not work with Advanced Content Filter in several cases.
Expand Down
7 changes: 1 addition & 6 deletions core/editable.js
Expand Up @@ -600,12 +600,7 @@
// BACKSPACE/DEL pressed at the start/end of table cell.
else if ( ( parent = path.contains( [ 'td', 'th', 'caption' ] ) ) &&
range.checkBoundaryOfElement( parent, rtl ? CKEDITOR.START : CKEDITOR.END ) ) {
next = parent[ rtl ? 'getPreviousSourceNode' : 'getNextSourceNode' ]( 1, CKEDITOR.NODE_ELEMENT );
if ( next && !next.isReadOnly() && range.root.contains( next ) ) {
range[ rtl ? 'moveToElementEditEnd' : 'moveToElementEditStart' ]( next );
range.select();
isHandled = 1;
}
isHandled = 1;
}
}

Expand Down

0 comments on commit 1aa6e75

Please sign in to comment.