UNPKG

ngx-editor

Version:

The Rich Text Editor for Angular, Built on ProseMirror

12 lines (11 loc) 405 B
import type { EditorState, Command } from 'prosemirror-state'; import { ToggleCommand } from './types'; export type Align = 'left' | 'center' | 'right' | 'justify'; declare class TextAlign implements ToggleCommand { align: string; constructor(align: Align); toggle(): Command; isActive(state: EditorState): boolean; canExecute(state: EditorState): boolean; } export default TextAlign;