Content Delivery API - Parsing JSON Text Output (React)?

So firstly, I have tried to search, but the search for the forum is returning 0 result on all queries, so apologies if this has already been solved.

I am using the new Rich Text Editor on a v15 site. I’ve seen TipTap is now the choice, however, the content delivery API returns a JSON format that differs from the TipTap standard output, which means I can’t push it through the TipTop generateHtml function.

Before I go and write a React component that handles conversion of this structure into HTML, I wanted to ask, does this already exist? It feels like someone must have done this before?

Do you maybe have RichTextOutputAsJson switched on in the config? Although by default it should return HTML (at least it has been for me).

1 Like

I ended using this npm package, it handles the JSON output nicely, and was pretty easy to extend and control rendering of the HTML and Blocks. Recommended!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.