1 wysihtml5.commands.deleteTableCells = {
2 exec: function(composer, command, value) {
3 if (composer.tableSelection && composer.tableSelection.start && composer.tableSelection.end) {
4 var tableSelect = wysihtml5.dom.table.orderSelectionEnds(composer.tableSelection.start, composer.tableSelection.end),
5 idx = wysihtml5.dom.table.indexOf(tableSelect.start),
7 table = composer.tableSelection.table;
9 wysihtml5.dom.table.removeCells(tableSelect.start, value);
10 setTimeout(function() {
11 // move selection to next or previous if not present
12 selCell = wysihtml5.dom.table.findCell(table, idx);
16 selCell = wysihtml5.dom.table.findCell(table, {
22 if (value == "column") {
23 selCell = wysihtml5.dom.table.findCell(table, {
30 composer.tableSelection.select(selCell, selCell);
37 state: function(composer, command) {