-
Hey, I am really impressed by this project, and love to use it. The problem I'm facing is that I cannot seem to wrap my head around how to export the stored values and display them as static content, for the viewer of the content. I've found the mention of the serialization plugin - but I can't seem to understand how to get the required nodes from the editor state. Furthermore, I'd rather not save the HTML in my db and would rather rely on rendering the content using plate ui components just bypassing the live editor. Is that possible? This is an extremly flawed and naive way of attempting this:
This obviously doesn't work well as there is no clear 1to1 mapping between the attributes. I'm really confused about which approach to take so I'd love some guidance in using this otherwise crystal clear package. Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Thanks for the feedback I'd save the slate json value in the database, and use the HTML serializer client-side. There is a WIP attempt of bypassing slate-react #1274 |
Beta Was this translation helpful? Give feedback.
Thanks for the feedback
I'd save the slate json value in the database, and use the HTML serializer client-side.
There is a WIP attempt of bypassing slate-react #1274