Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/rich-text-types/src/schemaConstraints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export type ListItemBlockEnum =

export type TableRowBlockEnum = BLOCKS.TABLE_CELL | BLOCKS.TABLE_HEADER_CELL;

export type TableCellEnum = BLOCKS.PARAGRAPH | BLOCKS.UL_LIST | BLOCKS.OL_LIST;
export type TableCellEnum = ListItemBlockEnum;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Nit: Can we have a dedicated enum here? it would be handy when adjusting the normalisation logic in the editor
  • You also need to adjust the entry for table cell in the CONTAINERS below


export type TableHeaderCellEnum = BLOCKS.PARAGRAPH;

Expand Down
11 changes: 11 additions & 0 deletions packages/rich-text-types/src/schemas/generated/table-cell.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@
},
"TableCellEnum": {
"enum": [
"blockquote",
"embedded-asset-block",
"embedded-entry-block",
"embedded-resource-block",
"heading-1",
"heading-2",
"heading-3",
"heading-4",
"heading-5",
"heading-6",
"hr",
"ordered-list",
"paragraph",
"unordered-list"
Expand Down