fix table resizing, fix #183

This commit is contained in:
Philipp Kühn
2021-03-05 12:13:49 +01:00
parent 2017b84578
commit 56e1a0e045

View File

@@ -24,6 +24,16 @@ export const TableCell = Node.create<TableCellOptions>({
},
colwidth: {
default: null,
parseHTML: element => {
const colwidth = element.getAttribute('colwidth')
const value = colwidth
? [parseInt(colwidth, 10)]
: null
return {
colwidth: value,
}
},
},
}
},