Option to add paragraph inside table cell while inserting table, row, column #6121
Unanswered
hafeezulkareem-yellow
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a use case in Tiptap where I need to allow empty
td
andtable
while inserting content into the editor. To achieve this, I used thecontent
property with node extend.const CustomTableCell = TableCell.extend({ ..., content: 'block*', ..., });
It's creating one issue while inserting tables, rows, columns, etc.., where cells don't have paragraphs in them. Since I am making it optional in the custom node, it's not adding any paragraphs while inserting the cells. I have attached the screenshots for reference below.


Requirement
I need a way to tell Tiptap to add an empty paragraph while inserting the cells. Is there any way to achieve this?
Version
@tiptap/react: 2.6.6
Beta Was this translation helpful? Give feedback.
All reactions