Fieldtype

Developer
Supported

Expresso

ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5

Back to this add-on's main page
View Other Add-ons From PutYourLightsOn

     

You must be logged in to post.

Prevent auto-addition of Width and Height for image uploads

Feature (Resolved)

IC360 (Oliver Cannell)
IC360 (Oliver Cannell)

When uploading an image, the Width and Height fields are auto-completed.
Would it be possible to add a toggle in the Settings, so this doesn’t happen?

I’m trying to output images so they auto-scale on a Responsive layout, and these Width / Height definitions are over-riding the Stylesheet.

Thanks a lot.

PutYourLightsOn
# 1
Developer
PutYourLightsOn

This should be possible by adding the disallowedContent config setting. Replace line 25 in themes/user/expresso/javascript/expresso.js from:

allowedContenttrue 

to:

disallowedContent'img{width,height}'