Open Satindar31 opened 2 weeks ago
You can also use the site which is available online at https://openpages.us.kg/ to understand the bug. Signup for an account(or use clerks test emails to signup) and then go to https://openpages.us.kg/dashboard/write and write something in the editor. It should save on the second try(write pause, wait for save to fail, write again, it should save, this is a bug). Then view the document on https://openpages.us.kg/dashboard and click the id to see the editor handling the initialContent
@andrewdoro
Provide environment information
Describe the bug
When passing in
initialValue
which is of typeJSONContent
the editor displays it as plain text instead of text with propper highlighting.Link to reproduction
https://github.com/satindar31/openpages
To reproduce
Feed JSONContent to initialValue (preferably which is being imported from another file or which is being fetched from a DB/server).
Additional information
The editor files in the repro repo are in
/components/editor