You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If model is updated during the initialization, it is not set correctly in the editor, which remains empty.
In our case, we make a request to the API that starts at the same time as the editor renders. When the request is done, model is updated, but sometimes it happens that the editor remains empty.
A quick solution on our side would be to modify our component so that it doesn't render the editor until the API request is finished, but I think that's still an issue that should be checked here, because it doesn't seem like the right behavior.
You can find a proof of concept here (and the source code here).
The text was updated successfully, but these errors were encountered:
cristianlivella
added a commit
to cristianlivella/react-froala-wysiwyg
that referenced
this issue
Mar 5, 2022
Use context:
If model is updated during the initialization, it is not set correctly in the editor, which remains empty.
In our case, we make a request to the API that starts at the same time as the editor renders. When the request is done,
model
is updated, but sometimes it happens that the editor remains empty.A quick solution on our side would be to modify our component so that it doesn't render the editor until the API request is finished, but I think that's still an issue that should be checked here, because it doesn't seem like the right behavior.
You can find a proof of concept here (and the source code here).
The text was updated successfully, but these errors were encountered: