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