mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 07:40:13 +08:00
fix colwidth for tablehead, see #186
This commit is contained in:
parent
24d2f38021
commit
b7cf5e3e4f
@ -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,
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user