When uploading an image, the height & width are initially set to the image's dimensions. Some of our novice users are uploading massive images. The image fills the entire editor, pushes their text down and they can't see what they're doing.

It would be helpful if an initial maximum size could be defined for new images.

This would also help the image_resize_filter to do what it's supposed to do.

See similar issue for ckeditor_image2 module at https://www.drupal.org/project/ckeditor_image2/issues/3021893.

Comments

bwaindwain created an issue. See original summary.

bwaindwain’s picture

Here's a patch which adds two fields to the config settings. Includes bits from two other patches.

https://www.drupal.org/node/2637746
https://www.drupal.org/node/2503393

bwaindwain’s picture

Status: Active » Needs review
bwaindwain’s picture

same patch as #2 but with proper filename