Adapt editor.py to new version of local_storage