interface MarkConfig<Options = any, Storage = any> { addAttributes?: ( this: { editor?: Editor; name: string; options: Options; parent: undefined | (
(...args: []) => {} | Attributes)
; storage: Storage; }, ) => {} | Attributes; addCommands?: ( this: { editor: Editor; name: string; options: Options; parent: undefined | (
(...args: []) => ReturnType<Required<T>[P]>)
; storage: Storage; type: MarkType; }, ) => Partial<RawCommands>; addExtensions?: ( this: { name: string; options: Options; parent: undefined | (
(...args: []) => Extensions)
; storage: Storage; }, ) => Extensions; addGlobalAttributes?: ( this: { extensions: (
Mark<any, any> | Node<any, any>)
[]; name: string; options: Options; parent: undefined | (
(...args: []) => GlobalAttributes)
; storage: Storage; }, ) => GlobalAttributes; addInputRules?: ( this: { editor: Editor; name: string; options: Options; parent: undefined | (
(...args: []) => InputRule[])
; storage: Storage; type: MarkType; }, ) => InputRule[]; addKeyboardShortcuts?: ( this: { editor: Editor; name: string; options: Options; parent: | undefined | (
(...args: []) => { [key: string]: KeyboardShortcutCommand })
; storage: Storage; type: MarkType; }, ) => { [key: string]: KeyboardShortcutCommand }; addMarkView?: | null | (
( this: { editor: Editor; name: string; options: Options; parent: ((this: { name: string; options: Options; storage: Storage; editor: Editor; type: MarkType; parent: ... | null | undefined; }) => MarkViewRenderer<MarkViewRendererProps>) | null | undefined
; storage: Storage; type: MarkType; }, ) => MarkViewRenderer )
; addOptions?: ( this: { name: string; parent: undefined | (
(...args: []) => Options)
}, ) => Options; addPasteRules?: ( this: { editor: Editor; name: string; options: Options; parent: undefined | (
(...args: []) => PasteRule[])
; storage: Storage; type: MarkType; }, ) => PasteRule[]; addProseMirrorPlugins?: ( this: { editor: Editor; name: string; options: Options; parent: undefined | (
(...args: []) => Plugin<any>[])
; storage: Storage; type: MarkType; }, ) => Plugin<any>[]; addStorage?: ( this: { name: string; options: Options; parent: undefined | (
(...args: []) => Storage)
; }, ) => Storage; code?: | boolean | (
( this: { editor?: Editor; name: string; options: Options; parent: boolean | ((this: { name: string; options: Options; storage: Storage; parent: boolean | ... | undefined; editor?: Editor | undefined; }) => boolean) | undefined
; storage: Storage; }, ) => boolean )
; excludes?: | string | (
( this: { editor?: Editor; name: string; options: Options; parent: string | ((this: { name: string; options: Options; storage: Storage; parent: string | ... | undefined; editor?: Editor | undefined; }) => string | undefined) | undefined
; storage: Storage; }, ) => undefined | string )
; exitable?: boolean | (
() => boolean)
; extendMarkSchema?: | null | (
( this: { name: string; options: Options; parent: ((this: { name: string; options: Options; storage: Storage; parent: ... | null | undefined; }, extension: Mark<any, any>) => Record<string, any>) | null | undefined
; storage: Storage; }, extension: Mark, ) => Record<string, any> )
; extendNodeSchema?: | null | (
( this: { name: string; options: Options; parent: ((this: { name: string; options: Options; storage: Storage; parent: ... | null | undefined; }, extension: Node<any, any>) => Record<string, any>) | null | undefined
; storage: Storage; }, extension: Node, ) => Record<string, any> )
; group?: | string | (
( this: { editor?: Editor; name: string; options: Options; parent: string | ((this: { name: string; options: Options; storage: Storage; parent: string | ... | undefined; editor?: Editor | undefined; }) => string | undefined) | undefined
; storage: Storage; }, ) => undefined | string )
; inclusive?: | boolean | (
( this: { editor?: Editor; name: string; options: Options; parent: boolean | ((this: { name: string; options: Options; storage: Storage; parent: boolean | ... | undefined; editor?: Editor | undefined; }) => boolean | undefined) | undefined
; storage: Storage; }, ) => undefined | boolean )
; keepOnSplit?: boolean | (
() => boolean)
; name: string; onBeforeCreate?: | null | (
( this: { editor: Editor; name: string; options: Options; parent: ((this: { name: string; options: Options; storage: Storage; editor: Editor; type: MarkType; parent: ... | null | undefined; }, event: { editor: Editor; }) => void) | null | undefined
; storage: Storage; type: MarkType; }, event: { editor: Editor }, ) => void )
; onBlur?: | null | (
( this: { editor: Editor; name: string; options: Options; parent: ((this: { name: string; options: Options; storage: Storage; editor: Editor; type: MarkType; parent: ... | ... 1 more ... | undefined; }, event: { editor: Editor; event: FocusEvent; transaction: Transaction; }) => void) | null | undefined
; storage: Storage; type: MarkType; }, event: { editor: Editor; event: FocusEvent; transaction: Transaction }, ) => void )
; onCreate?: | null | (
( this: { editor: Editor; name: string; options: Options; parent: ((this: { name: string; options: Options; storage: Storage; editor: Editor; type: MarkType; parent: ... | null | undefined; }, event: { editor: Editor; }) => void) | null | undefined
; storage: Storage; type: MarkType; }, event: { editor: Editor }, ) => void )
; onDestroy?: | null | (
( this: { editor: Editor; name: string; options: Options; parent: ((this: { name: string; options: Options; storage: Storage; editor: Editor; type: MarkType; parent: ... | null | undefined; }, event: void) => void) | null | undefined
; storage: Storage; type: MarkType; }, event: void, ) => void )
; onFocus?: | null | (
( this: { editor: Editor; name: string; options: Options; parent: ((this: { name: string; options: Options; storage: Storage; editor: Editor; type: MarkType; parent: ... | ... 1 more ... | undefined; }, event: { editor: Editor; event: FocusEvent; transaction: Transaction; }) => void) | null | undefined
; storage: Storage; type: MarkType; }, event: { editor: Editor; event: FocusEvent; transaction: Transaction }, ) => void )
; onSelectionUpdate?: | null | (
( this: { editor: Editor; name: string; options: Options; parent: ((this: { name: string; options: Options; storage: Storage; editor: Editor; type: MarkType; parent: ... | ... 1 more ... | undefined; }, event: { editor: Editor; transaction: Transaction; }) => void) | null | undefined
; storage: Storage; type: MarkType; }, event: { editor: Editor; transaction: Transaction }, ) => void )
; onTransaction?: | null | (
( this: { editor: Editor; name: string; options: Options; parent: ((this: { name: string; options: Options; storage: Storage; editor: Editor; type: MarkType; parent: ... | ... 1 more ... | undefined; }, event: { editor: Editor; transaction: Transaction; appendedTransactions: Transaction[]; }) => void) | null | undefined
; storage: Storage; type: MarkType; }, event: { appendedTransactions: Transaction[]; editor: Editor; transaction: Transaction; }, ) => void )
; onUpdate?: | null | (
( this: { editor: Editor; name: string; options: Options; parent: ((this: { name: string; options: Options; storage: Storage; editor: Editor; type: MarkType; parent: ... | ... 1 more ... | undefined; }, event: { editor: Editor; transaction: Transaction; appendedTransactions: Transaction[]; }) => void) | null | undefined
; storage: Storage; type: MarkType; }, event: { appendedTransactions: Transaction[]; editor: Editor; transaction: Transaction; }, ) => void )
; parseHTML?: ( this: { editor?: Editor; name: string; options: Options; parent: undefined | (
(...args: []) => undefined | readonly ParseRule[])
; storage: Storage; }, ) => undefined | readonly ParseRule[]; priority?: number; renderHTML?: | null | (
( this: { editor?: Editor; name: string; options: Options; parent: ((this: { name: string; options: Options; storage: Storage; parent: ... | null | undefined; editor?: Editor | undefined; }, props: { mark: Mark; HTMLAttributes: Record<string, any>; }) => DOMOutputSpec) | null | undefined
; storage: Storage; }, props: { HTMLAttributes: Record<string, any>; mark: Mark }, ) => DOMOutputSpec )
; spanning?: | boolean | (
( this: { editor?: Editor; name: string; options: Options; parent: boolean | ((this: { name: string; options: Options; storage: Storage; parent: boolean | ... | undefined; editor?: Editor | undefined; }) => boolean | undefined) | undefined
; storage: Storage; }, ) => undefined | boolean )
;}
Attributes