aspnetcore-js-devexpress-dot-richedit-84b53802.md
Contains methods related to Rich Text Editor history.
export class History
An object of the History class can be accessed by the history property.
richEdit.history.undo();
Specifies that the following actions should be saved as a single history transaction.
beginTransaction(): void
Use the beginTransaction and endTransaction methods to process several actions as a single history transaction.
richEdit.beginUpdate();
richEdit.history.beginTransaction();
var subDocument = richEdit.selection.activeSubDocument;
var position = richEdit.selection.active;
var columnCount = 5;
var rowCount = 5;
var table = subDocument.tables.create(position, columnCount, rowCount);
for (var rowInd = 0, row; row = table.rows.getByIndex(rowInd); rowInd++) {
for (var cellInd = 0, cell; cell = row.cells.getByIndex(cellInd); cellInd++) {
subDocument.insertText(cell.interval.start, "Row[" + rowInd + "].Cell[" + cellInd + "]");
}
}
richEdit.history.endTransaction();
richEdit.endUpdate();
Clears the editor history.
clear(): void
Ends a history transaction.
endTransaction(): void
Use the beginTransaction and endTransaction methods to process several actions as a single history transaction.
Redoes the last undone action in the Rich Text Editor.
redo(): void
richEdit.history.redo();
Undoes the last action in the Rich Text Editor.
undo(): void
richEdit.history.undo();