fix: add name to context

This commit is contained in:
Philipp Kühn
2021-04-20 23:12:21 +02:00
parent a43d4c7bcb
commit df43c1bc47

View File

@@ -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,
} }