ChangeEditorMode

Called when the editor mode is changed