devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
12 lines (11 loc) • 502 B
JavaScript
import { TableBasedHistoryItem } from './create-table-history-item';
export class RemoveTableHistoryItem extends TableBasedHistoryItem {
redo() {
this.table = this.getTable();
this.cellsRanges = TableBasedHistoryItem.getTableCellsRanges(this.table);
this.modelManipulator.table.removeTable(this.boundSubDocument, this.table);
}
undo() {
this.modelManipulator.table.restoreRemovedTable(this.boundSubDocument, this.table, this.cellsRanges);
}
}