initialize editMode in editor