Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
FCKeditor WYSIWYG in Vanilla
This discussion has been closed.
Comments
$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')) ) {
Go into phpmyadmin and execute this query:
UPDATE `lum_comment` SET `FormatType` = 'kses' WHERE `FormatType` = 'FCKeditor' ; or UPDATE `lum_comment` SET `FormatType` = 'Html' WHERE `FormatType` = 'FCKeditor' ;
Use the first one if you use the kses formatter or the second one if you use the HtmlFormatter of SirNot
Error loading (URL addy)/js/FCKeditor/editor/plugins/Video/lang/en.js (OK)
Error loading (URL addy)/js/FCKeditor/editor/plugins/Video/fckplugin.js (OK)
Unknown toolbar item "Video" (OK)
Then it does load the editor. After a save, the discussion is displayed ... receive the same error messages before it displays the comment area.
Safari displays the saved discussion with a comment area with FCKeditor off. In other words, Safari does not find the extension.
Help?