rete icon indicating copy to clipboard operation
rete copied to clipboard

editor.toJSON gives not JSON, but JS object. editor.fromJSON is consuming actually not JSON but JS object ☠️

Open liesislukas opened this issue 4 years ago • 1 comments

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();

liesislukas avatar May 27 '21 12:05 liesislukas

Yep, "editor.load" and "editor.save" would be more logical

Hatead1 avatar May 28 '21 08:05 Hatead1

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.

rete-js[bot] avatar Jul 13 '23 10:07 rete-js[bot]