Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with JSON data #1

Open
sipec opened this issue Sep 27, 2022 · 1 comment
Open

Does not work with JSON data #1

sipec opened this issue Sep 27, 2022 · 1 comment

Comments

@sipec
Copy link

sipec commented Sep 27, 2022

If content is stored via editor.getJSON(), the data from the editor extension isn't compatible with the display extension. I suspect there is no good solution to this because the former is a mark while the latter is a node.

@MWGuy
Copy link

MWGuy commented Nov 8, 2024

I fixed this issue using @troop.com/tiptap-react-render package to transform tiptap json tree info react node tree and implement custom nodes and marks.

This technique allow building complicated rich text nodes and marks with full controll over tiptap tree. Replacing default renderer also gives opotunity to render complicated nodes with state on server with is usefull while using SSR frameworks like next.js or remix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants