Refactor the editor to  documentor