PatolordP
Convex Community9mo ago
14 replies
Patolord

How can I properly store Tiptap's deeply nested JSON editor content in a table?

I have rich text editor that outputs json formated data, the more formating the crazier the json.
Should i keep doing this? Im getting warning of deep nesting at level 16

{
  content: [
    {
      content: [
        {
          marks: [
            {
              attrs: { color: "rgb(0, 0, 0)" },
              type: "textStyle",
            },
          ],
          text: "actual random text (this can get really crazy",
          type: "text",
        },
      ],
      type: "paragraph",
    },
  ],
  type: "doc",
}
image.png
Was this page helpful?