UNPKG

@zodiac-ui/editor

Version:

A rich text editor for Angular based on `@atlaskit/editor-core`.

11 lines (10 loc) 700 B
import { InputRule } from 'prosemirror-inputrules'; import { EditorState, Transaction } from 'prosemirror-state'; export declare type InputRuleWithHandler = InputRule & { handler: InputRuleHandler; }; export declare type InputRuleHandler = ((state: EditorState, match: any, start: any, end: any) => Transaction | null); export declare function defaultInputRuleHandler(inputRule: InputRuleWithHandler, isBlockNodeRule?: boolean): InputRuleWithHandler; export declare function createInputRule(match: RegExp, handler: InputRuleHandler, isBlockNodeRule?: boolean): InputRuleWithHandler; export declare const leafNodeReplacementCharacter = "\uFFFC"; export declare const uuid: () => string;