feat: add addExtensions option
This commit is contained in:
@@ -5,6 +5,7 @@ import { Node } from './Node'
|
||||
import { Mark } from './Mark'
|
||||
import mergeDeep from './utilities/mergeDeep'
|
||||
import {
|
||||
AnyExtension,
|
||||
GlobalAttributes,
|
||||
RawCommands,
|
||||
ParentConfig,
|
||||
@@ -92,6 +93,16 @@ declare module '@tiptap/core' {
|
||||
parent: ParentConfig<ExtensionConfig<Options>>['addProseMirrorPlugins'],
|
||||
}) => Plugin[],
|
||||
|
||||
/**
|
||||
* Extensions
|
||||
*/
|
||||
addExtensions?: (this: {
|
||||
name: string,
|
||||
options: Options,
|
||||
editor: Editor,
|
||||
parent: ParentConfig<ExtensionConfig<Options>>['addExtensions'],
|
||||
}) => AnyExtension[],
|
||||
|
||||
/**
|
||||
* Extend Node Schema
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user