Merge pull request #5166 from LIlGG/fix/merge-cell-tr-height

fix: resolve the issue of reduced row count after merging cells
pull/5181/head
John Niang 2024-01-11 21:36:09 +08:00 committed by GitHub
commit 68306600db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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({ 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;