init table, table-row and table-cell
This commit is contained in:
5
packages/extension-table/src/index.ts
Normal file
5
packages/extension-table/src/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Table } from './table'
|
||||
|
||||
export * from './table'
|
||||
|
||||
export default Table
|
||||
11
packages/extension-table/src/table.ts
Normal file
11
packages/extension-table/src/table.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Node } from '@tiptap/core'
|
||||
|
||||
export const Table = Node.create({
|
||||
name: 'table',
|
||||
})
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
Table: typeof Table,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user