improve options interface

This commit is contained in:
Philipp Kühn
2021-02-10 18:25:08 +01:00
parent 55ff908423
commit 215c26748b
33 changed files with 68 additions and 67 deletions

View File

@@ -64,14 +64,16 @@ declare module '@tiptap/core' {
}
}
export const Table = Node.create({
export const Table = Node.create<TableOptions>({
name: 'table',
defaultOptions: <TableOptions>{
defaultOptions: {
HTMLAttributes: {},
resizable: false,
handleWidth: 5,
cellMinWidth: 25,
// TODO: fix
// @ts-ignore
View: TableView,
lastColumnResizable: true,
allowTableNodeSelection: false,