Post

4 followers Follow
3
Avatar

How can I get the json and html in the editor not when onSave but at anytime?

I need to get current state of my editor to know if there is changes . Could you add a possibility to get json and html - probably some function getState(jsonFile, htmlFile) ???

Kirill

Please sign in to leave a comment.

3 comments

1
Avatar

Good question. I tried to find a solution, but without success.

I'm joining to this question.

Александр Житник 1 vote
0
Avatar

Such a function does not exist because parsing the JSON to output the HTML is a time consuming task that you should not execute continuously. It will lead to a bad user experience (when you execute onSave, the user expects a minor delay while the message is saved, so there is no impact on the UX there).

What you can do instead is to:

We hope this helps!

Massimo Arrigoni 0 votes