fix: add name to context
This commit is contained in:
@@ -15,8 +15,9 @@ declare module '@tiptap/core' {
|
|||||||
| boolean
|
| boolean
|
||||||
| null
|
| null
|
||||||
| ((this: {
|
| ((this: {
|
||||||
|
name: string,
|
||||||
options: Options,
|
options: Options,
|
||||||
parentConfig: ParentConfig<NodeConfig<Options>>,
|
parent: ParentConfig<NodeConfig<Options>>['allowGapCursor'],
|
||||||
}) => boolean | null),
|
}) => boolean | null),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -32,6 +33,7 @@ export const Gapcursor = Extension.create({
|
|||||||
|
|
||||||
extendNodeSchema(extension) {
|
extendNodeSchema(extension) {
|
||||||
const context = {
|
const context = {
|
||||||
|
name: extension.name,
|
||||||
options: extension.options,
|
options: extension.options,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user