diff --git a/htdocs/lib/web.php b/htdocs/lib/web.php index 3b86c8f79ab4131540017102b8fcefa44eae78d4..f780a868f4493ca6e399431c92b36aa5cafc1201 100644 --- a/htdocs/lib/web.php +++ b/htdocs/lib/web.php @@ -318,6 +318,7 @@ tinyMCE.init({ + ",ul[id|type|compact]" + ",iframe[src|width|height|name|scrolling|frameborder|allowfullscreen|webkitallowfullscreen|mozallowfullscreen|longdesc|marginheight|marginwidth|align|title|class|type]" + ",a[id|class|title|href|name]" + + ",button[id|class|title]" ,urlconverter_callback : "custom_urlconvert", language: '{$language}', directionality: "{$tinymce_langdir}", @@ -3751,6 +3752,8 @@ function clean_html($text, $xhtml=false) { ) ); $area->excludes = array('area' => true); + // Allow button tags + $def->addElement('button', 'Inline', 'Inline', 'Common'); } $purifier = new HTMLPurifier($config);