Add a function for adding an editor from a file entry