Next.js Discord

Discord Forum

How to store TipTap's content in to Prisma db?

Answered
Rhinelander posted this in #help-forum
Open in Discord
Avatar
RhinelanderOP
I want secure and performant way to do it. How do I then display that data?
Answered by B33fb0n3
You can use either json or html. Both are supported by tiptap. Then it's pretty simple: get the output (html/json) from the editor and save it in an entry inside your DB.

Later you can read that entry, get the output (html/json) and render it
View full answer

2 Replies

Avatar
You can use either json or html. Both are supported by tiptap. Then it's pretty simple: get the output (html/json) from the editor and save it in an entry inside your DB.

Later you can read that entry, get the output (html/json) and render it
Answer
Avatar