on-codemerge
Version:
A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product
36 lines (35 loc) • 884 B
TypeScript
import { Plugin } from '../../core/Plugin';
import { HTMLEditor } from '../../core/HTMLEditor';
export declare class HistoryPlugin implements Plugin {
name: string;
hotkeys: ({
keys: string;
description: string;
command: string;
icon: string;
keysMac?: undefined;
} | {
keys: string;
keysMac: string;
description: string;
command: string;
icon: string;
})[];
private editor;
private historyManager;
private historyViewer;
private observer;
private undoButton;
private redoButton;
private historyButton;
private unsubscribe;
private isRestoringState;
constructor();
initialize(editor: HTMLEditor): void;
private contentEvent;
private addToolbarButtons;
private undo;
private redo;
private showHistory;
destroy(): void;
}