Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge 06b2333 into 5168300
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Apr 14, 2020
2 parents 5168300 + 06b2333 commit 93fcc42
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/commands/removecolumncommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ export default class RemoveColumnCommand extends Command {
const cellToFocus = getCellToFocus( tableMap, firstCell, lastCell, removedColumnIndexes );

this.editor.model.change( writer => {
// A temporary workaround to avoid the "model-selection-range-intersects" error.
writer.setSelection( writer.createRangeOn( table ) );

const columnsToRemove = removedColumnIndexes.last - removedColumnIndexes.first + 1;

this.editor.plugins.get( 'TableUtils' ).removeColumns( table, {
Expand Down

0 comments on commit 93fcc42

Please sign in to comment.