rete
rete copied to clipboard
editor.toJSON gives not JSON, but JS object. editor.fromJSON is consuming actually not JSON but JS object ☠️
this naming is confusing.
await editor.fromJSON(editorState);
if editorState is JSON string - won't work.
The name says "to JSON", one may assume it will provide JSON sting, but nope. It is actually providing JS object.
editor.toJSON();
Yep, "editor.load" and "editor.save" would be more logical
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.