devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
19 lines (18 loc) • 599 B
TypeScript
import { HistoryItem } from './history-item';
export interface IHistory {
undo: () => void;
redo: () => void;
canUndo: () => boolean;
canRedo: () => boolean;
clear: () => void;
add: (historyItem: HistoryItem) => void;
addAndRedo: (historyItem: HistoryItem) => void;
beginTransaction: () => void;
endTransaction: () => void;
addTransaction(action: (history: IHistory) => void): any;
isModified: () => boolean;
resetModified: () => void;
getCurrentItemId: () => number;
historyItems: HistoryItem[];
currentIndex: number;
}