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
Added an extension to enable FCKeditor in Vanilla
you can download it from the Entensions page
you can download it from the Entensions page
0
This discussion has been closed.
Comments
According to the readme:
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
1) There is no "fckconfig.js" in the zip file, however there is a vanillaconfig.js.
2) When default.php is uploaded to extensions>FCKeditor>default.php, and the rest of the files are put into vanilla/js/FCKeditor (as per the readme), the extension does not work [failed ot open stream... extensions/FCKeditor/default.php on line 13 -- which is a call for settings.php].
3) When the other files (kses, settings, fckstyles) are deleted out of vanilla/js/FCKeditor/(left vanillaconfig.js, and copied and renamed it to fckconfig.js in vanilla/js/FCKeditor/) and placed into vanilla/extensions/FCKeditor/ I get a "Call to undefined function: setdefinition()".
I have a bunch of other extensions enabled, but this error doesn't look like it's being caused by another extension.
Thanks.
All the files in the archive you get from the addons site go into /extensions/FCKeditor.
Then you have to download the actual FCKeditor from http://www.fckeditor.net/download/
extract THAT archive into /your_vanilla_root/js/FCKeditor.
fckconfig.js will now be in /your_vanilla_root/js/FCKeditor. don't touch anything in that folder.
I followed your instructions, but am still getting a "call to undefined function: setdefinition()
[$Context->SetDefinition('FCKeditor', '(X)HTML')] from line 3 of extensions/FCKeditor/settings.php
Thanks.
MySchizoBuddy... if it's done that way, the problem is, the user may have a style which doesn't match the forum style. so the user's comment box may look nothing like the global comment list.
I think ajax preview is the best way to get this accomplished, i just haven't had time to look into it yet.
most vanilla installs let users have stylesheets which are different from the forum default. How are you going to tell fckeditor to use the user's stylesheet instead of the one the admin has customized?
If you just point fckeditor at the user's stylesheet, you get background images and incorrect DOM inside the comment box.
This is no solution.
this is why ajax preview would be best.
i think making the youtube button might not be so bad. of course they can also switch to source and paste in the youtube link.
let's just use Xstandard and forget about FCK
we cal also go with spaw and openwysiwyg
in the end each will have its own mess
how about Xinha
we can try that
//oh, Xinha? maybe.
Make a button that create the flash code that would start by
<object youtube="####"... or <object id="####"...
and add to kses allowed tags... 'object' => array('id' => 1), ...
You just need to add to the parser:
$string = preg_replace('/<object id="([\d\w-_]+)"><\/object>/i',.... return preg_replace('/<object><\/object>/i', '', $string);