Refactor `with-editor-export-editor'
Fix buggy call to `with-editor'