refactor table options

This commit is contained in:
Hans Pagel
2021-01-22 23:45:50 +01:00
parent aef9d1ca41
commit 64ba3fd212
4 changed files with 43 additions and 43 deletions

View File

@@ -33,12 +33,10 @@ export const TableCell = Node.create({
isolating: true,
parseHTML() {
// return [{ tag: 'td', getAttrs: dom => getCellAttrs(dom, extraAttrs) }]
return [{ tag: 'td' }]
},
renderHTML({ HTMLAttributes }) {
// toDOM(node) { return ["td", setCellAttrs(node, extraAttrs), 0] }
return ['td', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]
},