UNPKG

ngx-editor

Version:

Rich Text Editor for angular using ProseMirror

19 lines (18 loc) 553 B
import { EditorState } from 'prosemirror-state'; import { Command } from 'prosemirror-commands'; import { Dispatch } from './types'; export interface LinkAttrs { href: string; title?: string; target?: string; } declare class Link { update(attrs: LinkAttrs): Command; insert(text: string, attrs: LinkAttrs): Command; isActive(state: EditorState, options?: { strict: boolean; }): boolean; remove(state: EditorState, dispatch?: Dispatch): boolean; canExecute(state: EditorState): boolean; } export default Link;