Skip to content

Commit

Permalink
fix: resolve the issue of reduced row count after merging cells
Browse files Browse the repository at this point in the history
  • Loading branch information
LIlGG committed Jan 10, 2024
1 parent 0b30c0d commit 75247df
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 75247df

Please sign in to comment.