add table commands, add tableRole to the schema, add buttons to the example

This commit is contained in:
Hans Pagel
2021-01-21 00:16:45 +01:00
parent 4fc6674710
commit a1f2e9374b
7 changed files with 163 additions and 11 deletions

View File

@@ -6,16 +6,20 @@ export interface TableCellOptions {
},
}
export const TableCell = Node.create({
name: 'tableCell',
name: 'table_cell',
defaultOptions: <TableCellOptions>{
HTMLAttributes: {},
},
// content: options.cellContent,
content: 'block+',
// attrs: cellAttrs,
// tableRole: 'cell',
tableRole: 'cell',
isolating: true,
parseHTML() {