Skip to content

Commit

Permalink
Merge branch 'main' into feat/refactor-editor-upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby authored Jan 12, 2024
2 parents 09de9fe + 6830660 commit 74e173a
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 74e173a

Please sign in to comment.