From 7b8b5c51909fe552044221f3e93840ef31b5a3dd Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 6 Jul 2010 13:51:58 +0000 Subject: [PATCH] fix for bug targets (if specified with HTML Links in CKEditor) do not szrvive purify. Chr.Fueller investigated Attr.AllowedFrameTargets as cause of the issue --- phpgwapi/inc/class.html.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index 934faa7bad..a2da2b56fb 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -200,6 +200,8 @@ class html $config->set('HTML.TidyLevel', 'light'); // EnableID is needed for anchor tags $config->set('Attr.EnableID',true); + // enable target attributes + $config->set('Attr.AllowedFrameTargets','_blank,_top,_self,_parent'); // actual allowed tags and attributes $config->set('URI.AllowedSchemes', array('http'=>true, 'https'=>true, 'ftp'=>true, 'file'=>true, 'cid'=>true)); $config->set('AutoFormat.RemoveEmpty', true); @@ -241,6 +243,8 @@ class html $config->set('HTML.TidyLevel', 'light'); // EnableID is needed for anchor tags $config->set('Attr.EnableID',true); + // enable target attributes + $config->set('Attr.AllowedFrameTargets','_blank,_top,_self,_parent'); // actual allowed tags and attributes $config->set('URI.AllowedSchemes', array('http'=>true, 'https'=>true, 'ftp'=>true, 'file'=>true, 'cid'=>true)); $config->set('AutoFormat.RemoveEmpty', true); @@ -1449,6 +1453,8 @@ class html $config->set('HTML.TidyLevel', 'light'); // EnableID is needed for anchor tags $config->set('Attr.EnableID',true); + // enable target attributes + $config->set('Attr.AllowedFrameTargets','_blank,_top,_self,_parent'); // actual allowed tags and attributes $config->set('HTML.Allowed', 'br,p[align|style],b,i,u,s,em,pre,tt,strong,strike,center,div[align|style],hr[class|style],'. 'ul[type],ol[type|start],li,'.