visually resize images when uploaded inline in ckeditor is there a way to resize images after uploaded in the inline ckeditor?

if i have a big picture 2000x2000 and upload it (not via IMCE) to the editor, the image is huge and it is displayed in full size.



i have to scroll to left and down and drag the resize button multiple time until i get the result i can work with.



i miss the settings dialogue from D7 where i can define an image size upon upload. i cannot find any extension and i read many discussions that the D8 ckeditor has a lot less functions than in D7.
i read about the reason is responsive design but when i resize the image via drag there is still height and width added. so whats the point on this?
There's a pretty simple solution, but it does feel a bit hack-y.


Add a CSS file to a module/theme with contents like

img { max-width: 200px; height: auto; }

Implement hook_ckeditor_css_alter() to get that CSS file loaded in the WYSIWYG iframe:

function hook_ckeditor_css_alter(array &amp;$css, Editor $editor) {
  $css[] = drupal_get_path('module', 'mymodule') . '/css/mymodule-ckeditor.css';
}



Once that's up and running images in the WYSIWYG should be constrained in width to whatever you set in the CSS file. You might need to resort to !important, depending on what other styles are already active; it'll need some tweaking no doubt.