Custom rendering with ReactNodeViewRenderer inside table cell #5186
Unanswered
seleckis
asked this question in
Questions & Help
Replies: 2 comments 2 replies
-
I don't fully understand why you would not do as you said and do a If you are saying that because ReactNodeViewRenderer renders a div you cannot do that? NodeViewWrapper allows an |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi @seleckis, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to create custom rendering for table cell content? There is a
@tiptap/extension-table-cell
extension which can be extended byTableCell.extend
and withReactNodeViewRenderer
I can render whatever I want. But I need to leave table cell as is and intercept content rendering of a cell. Should I extendParagraph
extension in this case and check if its parent is a table cell, or something? What if I don't know what is rendering inside table cell and I just want to wrap everything with another element and leave table cell functionality as is.Beta Was this translation helpful? Give feedback.
All reactions