Fix editor to params.editor (editor is passed in params)