ngx-editor
Version:
Rich Text Editor for angular using ProseMirror
15 lines (14 loc) • 472 B
TypeScript
import { EditorState, Transaction } from 'prosemirror-state';
import { Command } from 'prosemirror-commands';
export declare type Dispatch = (tr: Transaction) => void | null;
interface BaseCommand {
canExecute: (state: EditorState) => boolean;
}
export interface ToggleCommand extends BaseCommand {
toggle: () => Command;
isActive: (state: EditorState) => boolean;
}
export interface InsertCommand extends BaseCommand {
insert: () => Command;
}
export {};