UNPKG

devexpress-richedit

Version:

DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.

14 lines (13 loc) 532 B
import { TableBasedHistoryItem } from './create-table-history-item'; export class RemoveTableHistoryItem extends TableBasedHistoryItem { cellsRanges; table; 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); } }