how to optimize inline images in ck-editor
As you can see in the image below, you only have these settings to optimize your image via upload in CKeditor. Using it you can for sure set the image dimensions, file size and path for images.

The below screenshot is from Drupal 8. You can get the same settings at www.example.com/admin/config/content/formats/manage/full_html