fix: resolve the issue of reduced row count after merging cells

pull/5166/head
LIlGG 2024-01-10 12:49:37 +08:00
parent 0b30c0d98e
commit 75247dfa43
1 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,16 @@ import { TableRow as BuiltInTableRow } from "@tiptap/extension-table-row";
const TableRow = BuiltInTableRow.extend({
allowGapCursor: false,
addAttributes() {
return {
...this.parent?.(),
style: {
default: "height: 60px;",
parseHTML: (element) => element.getAttribute("style"),
},
};
},
});
export default TableRow;