mirror of https://github.com/halo-dev/halo
Merge pull request #5166 from LIlGG/fix/merge-cell-tr-height
fix: resolve the issue of reduced row count after merging cellspull/5181/head
commit
68306600db
|
@ -2,6 +2,16 @@ import { TableRow as BuiltInTableRow } from "@tiptap/extension-table-row";
|
||||||
|
|
||||||
const TableRow = BuiltInTableRow.extend({
|
const TableRow = BuiltInTableRow.extend({
|
||||||
allowGapCursor: false,
|
allowGapCursor: false,
|
||||||
|
|
||||||
|
addAttributes() {
|
||||||
|
return {
|
||||||
|
...this.parent?.(),
|
||||||
|
style: {
|
||||||
|
default: "height: 60px;",
|
||||||
|
parseHTML: (element) => element.getAttribute("style"),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default TableRow;
|
export default TableRow;
|
||||||
|
|
Loading…
Reference in New Issue