split loadFromStorage into loadFromStorage and loadFromString (which is now used by the editor to manually set JSON input)