Skip to content

Commit

Permalink
Remove problematic condition check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Samsel committed Jul 24, 2017
1 parent 9adba1e commit 7e9cd3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/tabletools/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
// 2. Into previous cell of the first row if any;
// 3. Into table's parent element;
var cursorPosition;
if ( map[ 0 ].length - 1 > endColIndex && map[ 0 ][ endColIndex + 1 ].cellIndex !== -1 ) {
if ( map[ 0 ].length - 1 > endColIndex ) {
cursorPosition = new CKEDITOR.dom.element( map[ 0 ][ endColIndex + 1 ] );
} else if ( startColIndex && map[ 0 ][ startColIndex - 1 ].cellIndex !== -1 ) {
cursorPosition = new CKEDITOR.dom.element( map[ 0 ][ startColIndex - 1 ] );
Expand Down

0 comments on commit 7e9cd3a

Please sign in to comment.