Replies: 3 comments
-
When the content of the editor submitted to the database is empty, the load will give an error #38. |
Beta Was this translation helpful? Give feedback.
-
In my case, it was because I had an invalid editor state json structure. I was switching from a different editor and the previous structure did not match with the structure expected by Lexical. |
Beta Was this translation helpful? Give feedback.
-
Here is my solution for this: const content = localStorage.getItem(initialConfig.namespace) || '{"root":{"children":[{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1}],"direction":null,"format":"","indent":0,"type":"root","version":1}}'; |
Beta Was this translation helpful? Give feedback.
-
I'm using read-only mode for rendering in production and when I go to the page, I get the error
Lost editorState content after compression
#2153
I checked out similar issues and it seems this is not working, are there any new fixes or suggestions?
Beta Was this translation helpful? Give feedback.
All reactions