ngx-editor
Version:
The Rich Text Editor for Angular, Built on ProseMirror
18 lines (17 loc) • 524 B
TypeScript
import type { EditorState, Command } from 'prosemirror-state';
import type { 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;