Oreki
Explore posts from serverswhat is the ideal column type to store the content of a Tiptap editor?
Page component? Why'd you store Page component in the database? Idk if I got this but unless it's actually very big document that you're putting in database I don't think you'll even be closer to reaching the 600kb limit, I currently have a 500~ lines post using about 25~ kbs
10 replies
what is the ideal column type to store the content of a Tiptap editor?
my idea would be store the AST from tiptap directly into JSON column and load that into tiptap upon startup, xata has limits on how much can you store in text and string columns so you're more likely to hit them on long documents, plus tiptap has this in beta: https://tiptap.dev/docs/collaboration/documents/conversion
convert to/from tiptap's AST to markdown and other formats
10 replies