Skip to content

Commit

Permalink
fix: add name to context
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed Apr 20, 2021
1 parent 12f60ab commit a43d4c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/extension-table/src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ declare module '@tiptap/core' {
* Table Role
*/
tableRole?: string | ((this: {
name: string,
options: Options,
parentConfig: ParentConfig<NodeConfig<Options>>,
parent: ParentConfig<NodeConfig<Options>>['tableRole'],
}) => string),
}
}
Expand Down Expand Up @@ -231,6 +232,7 @@ export const Table = Node.create<TableOptions>({

extendNodeSchema(extension) {
const context = {
name: extension.name,
options: extension.options,
}

Expand Down

0 comments on commit a43d4c7

Please sign in to comment.