Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:1) /path/to/vanilla/extensions/FCKeditor/default.php
2) Download FCKeditor from (http://www.fckeditor.net/download/)
3) unzip it in /path/to/vanilla/js/FCKeditor/
the path to fckconfig.js should look like that: /path/to/vanilla/js/FCKeditor/fckconfig.js<object youtube="####"...
or
<object id="####"... and add to kses allowed tags ...
'object' => array('id' => 1),
...$string = preg_replace('/<object id="([\d\w-_]+)"><\/object>/i',....
return preg_replace('/<object><\/object>/i', '', $string);
$Context->StringManipulator->Formatters = array();
$Context->StringManipulator->GlobalFormatters = array();
$Context->Configuration['DEFAULT_FORMAT_TYPE'] = "FCKeditor";
$FCKeditorFormatter = $Context->ObjectFactory->NewObject($Context, "FCKeditorFormatter", $FCKeditor_allowed_tags, $FCKeditor_allowed_protocols);
$Context->StringManipulator->AddManipulator("FCKeditor", $FCKeditorFormatter);
by:$FCKeditorFormatter = $Context->ObjectFactory->NewObject($Context, "FCKeditorFormatter", $FCKeditor_allowed_tags, $FCKeditor_allowed_protocols);
$Context->StringManipulator->AddManipulator("FCKeditor", $FCKeditorFormatter);
if ( $Context->Session->UserID > 0 && $Context->Session->User->Permission('PERMISSION_HTML_ALLOWED') ) {
//Make Kses formater the only formatter available to post a new comment or to edit an old one
$Context->Configuration['DEFAULT_FORMAT_TYPE'] = "FCKeditor";
$Context->Session->User->DefaultFormatType = "FCKeditor";
$Context->Session->User->Preferences['ShowFormatSelector'] = 0;
}
if( $Configuration["FCKEDITOR_LOGINREQUIRED"]===false ||
($Context->Session->UserID > 0 &&
$Context->Session->User->Permission('PERMISSION_HTML_ALLOWED')) ) {
UPDATE `lum_comment` SET `FormatType` = 'kses' WHERE `FormatType` = 'FCKeditor' ;
or
UPDATE `lum_comment` SET `FormatType` = 'Html' WHERE `FormatType` = 'FCKeditor' ;
'span' => array('align' => 1, 'class' => 1, 'title' => 1),'span' => array('align' => 1, 'class' => 1, 'title' => 1, 'style' => 1),