mirror of https://github.com/halo-dev/halo
fix: resolve the issue of reduced row count after merging cells
parent
0b30c0d98e
commit
75247dfa43
|
@ -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