Save edit mode state.