Creating an editor component