How could I save large content from Lexical text editor to my database?

447 views Asked by At

Is there a way that I can save large content from my Lexical editor to my database? Let say the number of words is about 20k.

I tried to serialize the editorState into JSON and JSON stringified string, but when the content exceeds a certain length, the size of the serialized JSON also increases and I'm unable to send it to my backend server. It show "Payload Too Large" error if I do so.

0

There are 0 answers