fix colwidth for tablehead, see #186

This commit is contained in:
Philipp Kühn 2021-03-28 20:19:17 +02:00
parent 24d2f38021
commit b7cf5e3e4f

View File

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