feat: add addExtensions option
This commit is contained in:
@@ -8,6 +8,7 @@ import { Plugin, Transaction } from 'prosemirror-state'
|
||||
import { InputRule } from 'prosemirror-inputrules'
|
||||
import mergeDeep from './utilities/mergeDeep'
|
||||
import {
|
||||
AnyExtension,
|
||||
Attributes,
|
||||
NodeViewRenderer,
|
||||
GlobalAttributes,
|
||||
@@ -103,6 +104,16 @@ declare module '@tiptap/core' {
|
||||
parent: ParentConfig<NodeConfig<Options>>['addProseMirrorPlugins'],
|
||||
}) => Plugin[],
|
||||
|
||||
/**
|
||||
* Extensions
|
||||
*/
|
||||
addExtensions?: (this: {
|
||||
name: string,
|
||||
options: Options,
|
||||
editor: Editor,
|
||||
parent: ParentConfig<NodeConfig<Options>>['addExtensions'],
|
||||
}) => AnyExtension[],
|
||||
|
||||
/**
|
||||
* Extend Node Schema
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user