[TYPO3-english] Removing inline image width & height

Simon Browning simon at stwdesign.com
Thu Feb 6 17:19:14 CET 2014


I haven't found a way to remove the inline image width & height that TYPO3 places on images in content elements, so we're doing it currently with jquery (as below).

Is there a better, TYPO3 way to do this?

Thank you

Simon

// Remove inline heights and widths in images from content elements
 jQuery('img').each(function(){
        $(this).removeAttr('width')
        $(this).removeAttr('height');
    });


More information about the TYPO3-english mailing list