fix: add name to context
This commit is contained in:
@@ -72,8 +72,9 @@ declare module '@tiptap/core' {
|
|||||||
* Table Role
|
* Table Role
|
||||||
*/
|
*/
|
||||||
tableRole?: string | ((this: {
|
tableRole?: string | ((this: {
|
||||||
|
name: string,
|
||||||
options: Options,
|
options: Options,
|
||||||
parentConfig: ParentConfig<NodeConfig<Options>>,
|
parent: ParentConfig<NodeConfig<Options>>['tableRole'],
|
||||||
}) => string),
|
}) => string),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -231,6 +232,7 @@ export const Table = Node.create<TableOptions>({
|
|||||||
|
|
||||||
extendNodeSchema(extension) {
|
extendNodeSchema(extension) {
|
||||||
const context = {
|
const context = {
|
||||||
|
name: extension.name,
|
||||||
options: extension.options,
|
options: extension.options,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user