Forums / Cotonti / Support / Extrafield Textarea for some reason modifies the uploaded content

Twiebie
#38154 2013-10-13 20:08

Hi staleo,

It's most likely HTML Purifier filtering the data-caption attributes.

Try adding this to /plugins/htmlpurifier/presets/htmlpurifier.group_5.preset

$def = $config->getHTMLDefinition(true);
$def->addAttribute('img', 'data-caption', 'Text');