add attributes to table cells

This commit is contained in:
Hans Pagel
2021-01-22 00:07:31 +01:00
parent 3a511c4276
commit c4f35911a0
2 changed files with 19 additions and 7 deletions

View File

@@ -14,7 +14,19 @@ export const TableCell = Node.create({
content: 'block+',
// attrs: cellAttrs,
addAttributes() {
return {
colspan: {
default: 1,
},
rowspan: {
default: 1,
},
colwidth: {
default: null,
},
}
},
tableRole: 'cell',