Changed the method name for the editor from index to editor.