Is there a limit to the length of react's state storage? If so, what is the mechanism of this Filter? If not, why can't I save pictures of base 64?

do a rich text editor related project, using the Quill editor, and then found that the content with picture and text uploaded to the server, returned to me in the data, is the tag plus image base64.

then put it in state and display it on the page, but only the text and the picture are gone. I printed the data sent from the database and the data stored in state

.

data from the database

state

so it is truncated. Is there a limit to the length of state storage? How to cancel?
the strange thing is that when the editor stores the value in state and uploads it, why is there a limit on length when initializing the assignment now?

by the way, who can tell me where I can find a rich text editor! I want it! This kind of markdown editor is so cool! I wonder how the rich text editor sends stored data, html tags?
or save markdown? Then when the page is displayed, does markdown change to html?

Mar.05,2021

there is no limit, I have done the same requirement, using Baidu's ueditor editor, no problems have been encountered


You can do it raw (if it's base64):

use this. There is a react version in the document:
http://www.wangeditor.com/

.
Menu