-
Hey there 👋🏽 This one should be pretty simple, but I am a bit confused, I want to simply store the content of my editor, which I understand is the editor state. My use case is a simple post CRUD, therefore I will need to repopulate the editor with the proper content. And also I will need to parse and display those contents as HTML (I guess) Should I store it as a string? Should I store it as a JSON? Should I store something else? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In case someone else has this doubt, I found this question on StackOverflow https://stackoverflow.com/questions/72420375/lexical-text-editor-what-should-i-save-to-the-database and looks like JSON string is the proper way |
Beta Was this translation helpful? Give feedback.
In case someone else has this doubt, I found this question on StackOverflow https://stackoverflow.com/questions/72420375/lexical-text-editor-what-should-i-save-to-the-database and looks like JSON string is the proper way