The new image should now updated with the prevented aspect ratio (widht: 300px, height: 157).
Actual result
The image is streateched, because the aspect ratio was not locked correctly.
The problem is, that the plugin calculated behind the aspect ratio based on old image (instead of new image).
As workaround you must first save by clicking "ok" the changed image, and open then the image plugin dialog again. Then the size calculation with ratio locking works.
Other details
Browser: whatsmybrowser.org/b/WWUE9MD
OS: Win 10
CKEditor version: 4.8.0 (Standard) // latest from demo page
Are you reporting a feature request or a bug?
type: Bug, plugin: image2
Provide detailed reproduction steps (if any)
Expected result
The new image should now updated with the prevented aspect ratio (widht: 300px, height: 157).
Actual result
The image is streateched, because the aspect ratio was not locked correctly. The problem is, that the plugin calculated behind the aspect ratio based on old image (instead of new image).
As workaround you must first save by clicking "ok" the changed image, and open then the image plugin dialog again. Then the size calculation with ratio locking works.
Other details
Thanks for investigate!