Skip to content

Commit

Permalink
Merge pull request halo-dev#5166 from LIlGG/fix/merge-cell-tr-height
Browse files Browse the repository at this point in the history
fix: resolve the issue of reduced row count after merging cells
  • Loading branch information
JohnNiang authored Jan 11, 2024
2 parents 962cf99 + 75247df commit 6830660
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions console/packages/editor/src/extensions/table/table-row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 6830660

Please sign in to comment.