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 cfe0898fdd
commit fde2b1572d
7 changed files with 163 additions and 11 deletions

View File

@@ -7,16 +7,16 @@ export interface TableRowOptions {
}
export const TableRow = Node.create({
name: 'tableRow',
name: 'table_row',
defaultOptions: <TableRowOptions>{
HTMLAttributes: {},
},
// content: '(tableCell | tableHeader)*',
content: 'tableCell*',
content: 'table_cell*',
// tableRole: 'row',
tableRole: 'row',
parseHTML() {
return [{ tag: 'tr' }]