Currently, when I add image through the TinyMCE image insert function it adds a height and width attribute to the <img> tag. I want to stop that, as it a responsive site and so need the image to be flexible.
Is this possible? Has anyone done it before or know how?
I've not found any way of preventing that, but I've overcome it before using CSS. Usually, giving img a max-width: 100%; and height: auto; will solve it - browsers seem to ignore the width/height attributes when 'height: auto' is applied.
Thanks Steve and kinglozzer! But isn't there a way to modify the cms insert image function? I'd like to be able to define the class options available in the dropdown and leave out height and width to work with responsive width. I found a solution for 2.4. modifying ThumbnailStripField.php, which is deprecated. Anyone knows where can I find those controllers in 3.1.?