I couldn’t find a solution for resizing images and would like to get some advice on how to approach this problem.
When isolating the problem from ProseMirror, one could simply use
resize: both; styling on a div and then put an image inside that div, as shown here: http://jsfiddle.net/hv4nP/ (using resize on img directly doesn’t work for some reason).
This leaves two problems:
- how do we listen for resize events?
- how can we keep the aspect ratio?
It works by putting an “overlay” div over the image when clicking it and then providing four handles for interaction.
This sounds like a really good solution. How would one go ahead and implement this for ProseMirror?