Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-12-18 17:45:13

davistv
New member
Registered: 2006-12-18
Posts: 2

How to suppress style="..." in img tags?

Hello,

Any time I use the image manager (we're also using the extended file manager plugin) to edit an image's properties, it always adds this style property to the img tag:

style="border-style: solid; border-width: 0px; margin: 0px; padding: 0px;"

Is there any way to prevent this from being generated? I've tried editing the onOK() function in plugins/ExtendedFileManager/assets/manager.js so that it checks for an empty field and skips adding it to the param array, but the style property is still generated, no change.

Adding that style property is overriding site-wide CSS, and I'd rather it not.

Thank You,
Troy

Offline

#2 2006-12-18 18:23:31

koto
Xinha Pro
Registered: 2006-01-09
Posts: 58

Re: How to suppress style="..." in img tags?

Such functionality is possible in EFM (thanks to ray) - look at EFM's config.inc.php:

$IMConfig['images_enable_alt'] = true;
$IMConfig['images_enable_title'] = false;
$IMConfig['images_enable_align'] = true;
$IMConfig['images_enable_styling'] = true;


Unfortunately, ImageManager does not have this config options. May I ask why do you use both plugins? As far as I know EFM has all the functionality of IM (plus many more). If there is something possible in IM, that EFM can't yet do, please let us know.

Cheers,
koto

Offline

Board footer

Powered by FluxBB