mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
fix: add name to context
This commit is contained in:
parent
a43d4c7bcb
commit
df43c1bc47
@ -15,8 +15,9 @@ declare module '@tiptap/core' {
|
||||
| boolean
|
||||
| null
|
||||
| ((this: {
|
||||
name: string,
|
||||
options: Options,
|
||||
parentConfig: ParentConfig<NodeConfig<Options>>,
|
||||
parent: ParentConfig<NodeConfig<Options>>['allowGapCursor'],
|
||||
}) => boolean | null),
|
||||
}
|
||||
}
|
||||
@ -32,6 +33,7 @@ export const Gapcursor = Extension.create({
|
||||
|
||||
extendNodeSchema(extension) {
|
||||
const context = {
|
||||
name: extension.name,
|
||||
options: extension.options,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user