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.
TinyMCE/FCKeditor formatters not working
When I create a post with either TinyMCE or FCKeditor (disabling the other editor obviously) i can create posts just fine. I love these two editors and would love to implement them, but i've run into a problem.
None of my posts are formatted! All the line breaks and tabs and words are there, but no custom colors, bolding, or anything else. And yes, I do have the HTML formatter installed. Interestingly, if I go into the mySQL table and change "FormatType" for that particular post from either "FCKeditor" or "TinyMCE" to "Html", the formatting shows up!
So i'm thinking that neither of those formatters are working. Any ideas on a fix? This is driving me nuts!
0
This discussion has been closed.
Comments
Either way, I just changed out KSES for htmLawed, and it works fine. Now I have protection and the formatting finally fracking works! w00t!
How (for Tinymce):
Download htmLawed
Upload the htmLawed.php into the Tinymce extension folder. Change the Tinymce default.php lines (around 14-17) to:
//if (!function_exists('kses')) require(TINYMCE_PATH . 'kses.php');
if (!function_exists('htmLawed')) require(TINYMCE_PATH . 'htmLawed.php');
Scroll down to line 140/141 and change it to this:
if ($FormatPurpose == FORMAT_STRING_FOR_DISPLAY) {
return htmLawed($String);
Hope this helps someone!
in other words: do you also apply the htmLawed filter prior to DB input?
thanks!