fix colwidth for tablehead, see #186
This commit is contained in:
@@ -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,
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user