added factory to instantiate editorFactory