Closed gonsaje closed 2 years ago
I found out that we need to pass the entire editor object instead of just the blocks array. Thank you anyways
How did you solve this? It's still unclear for me
Nevermind, sorry for the reply.
For anyone having the same problem, take a look in here: https://codesandbox.io/s/react-editor-js-v2-34bfl?file=/src/index.js:365-5051 to understand the way the property is built. You have to pass the entire object. I was saving in my database only the blocks.
Environment
Describe
I am trying to implement react-editor with pre-existing document templates. It seems that when I try to use the defaultValue prop in the ReactEditorJS component, nothing is displayed.
Code:
`
`
I think I'm a little confused as to how the defaultValue should be configured.
Thanks in advance, Jungwoo!