fix in r30331 with check for pref popupLinks feature or wysiwyg before doing the below fix.
Modifying function in lib/htmlpurifier_tiki/HTMLPurifier.tiki.php according to example in http://htmlpurifier.org/docs/enduser-customize.html seems to do the trick, but not sure if this is the best fix. After all , HTML strict does not allow target attribute. o maybe some js approach is better...
function getHTMLPurifierTikiConfig() { global $tikipath; $d = $tikipath.'temp/cache/HTMLPurifierCache'; if (!is_dir($d)) { if (!mkdir($d)) { $d = $tikipath.'temp/cache'; } } $conf = HTMLPurifier_Config::createDefault(); $conf->set('Cache.SerializerPath', $d); // CUSTOM add exceptions $conf->set('HTML.DefinitionID', 'allow target'); $config->set('HTML.DefinitionRev', 1); $def = $conf->getHTMLDefinition(true); $def->addAttribute('a', 'target', 'Enum#_blank,_self,_target,_top'); return $conf; }
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |