contao / core

Contao 3 → see contao/contao for Contao 4
GNU Lesser General Public License v3.0
492 stars 213 forks source link

Setting image size in TinyMCE editor not working on all Internet Explorer versions #5573

Closed injeek closed 11 years ago

injeek commented 11 years ago

First, insert an image file in TinyMCE editor and change the size of image that different from the original size (doesn't matter bigger or smaller). Then go to frontend, it looks OK on all non-IE browsers. But IE will always shows the original size of the image from very old version to the latest IE 10. I found that this is caused by the contao system layout css that says "img" tag should "width:auto;height:auto;". If remove the "width" or "height" propery, everything works again.

leofeyer commented 11 years ago

Are you referring to this?

https://github.com/contao/core/blob/master/assets/contao/css/layout-uncompressed.css#L90-L100

injeek commented 11 years ago

Yes. I think that's the right location of the property. I checked css through the browser tool and see the compressed version, and looks that it's the right location of the uncompressed version.

leofeyer commented 11 years ago

In this case, please override the format definition in your "IE fixes" style sheet. The format definition is required for responsive images and cannot be removed.