With entity embed and e.g. File entity browser
https://www.drupal.org/project/file_browser β
one can quite neatly select a file entity - specifically an image - and insert it into a Wysiwyg text area.
Expected behavior
One can select image styles for the image. Still what users (my clients) usually want to do is to have a scaling handle like the core image insert button on CKeditor provides. Drop in the image, scale it to the size you want and off you go.
In the background a module like image resize filter makes sure a 60x60px image is not in fact a 10GB Monster image with a native resolution of 5600x3500px.
This works as far as I can see because the image is inserted as an <img>
tag and the connectin to the file entity is provided by an id that is kept in an attribute in the img tag. Neat solution. _But_ one cannot reuse already uploaded images, no media gallery.
As with entity embed images are inserted as entities and this is probably meant to be "entity-agnostic" to accept any entity, CKeditor cannot recognize the inserted image file entity as an image and hence cannot scale it.
What would be needed to make the above behavior available for images inserted as an entity?
I have been looking through the issue queue and googling for it, but could not find an answer.
I am willing to contribute to this with my limited developer skills.
The feature will become necessary down the line anyway in the grand scheme of Media in core for media entities. As media entities also are embedded entities, this should be basically the same?
If the discussion has been there and is already in motion, feel free to mark this issue as duplicate and point me to the right place.