devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
22 lines (21 loc) • 536 B
JavaScript
export class HistoryApi {
constructor(core) {
this._core = core;
}
beginTransaction() {
this._core.modelManager.history.beginTransaction();
}
endTransaction() {
this._core.modelManager.history.endTransaction();
}
redo() {
this._core.modelManager.history.redo();
}
undo() {
this._core.modelManager.history.undo();
}
clear() {
this._core.modelManager.history.clear();
this._core.barHolder.updateItemsState();
}
}