ngx-editor
Version:
The Rich Text Editor for Angular, Built on ProseMirror
13 lines (12 loc) • 421 B
TypeScript
import type { EditorState, Command } from 'prosemirror-state';
import { ToggleCommand } from './types';
export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
declare class Heading implements ToggleCommand {
level: number;
constructor(level: HeadingLevels);
apply(): Command;
toggle(): Command;
isActive(state: EditorState): boolean;
canExecute(state: EditorState): boolean;
}
export default Heading;