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?
This discussion has been closed.
Comments
plus can u tell me how to inject clearfix class to the CommentBody. like this
<div class="CommentBody clearfix" id="CommentBody_'.$Comment->CommentID.'">'; $CommentList .= $Comment->Body.' </div>
its needed so floating images can be used. FCKeditor and tinymce both allow floating images, without clearfix it will break the forum layout.
i took it straight from the default vanilla css and stripped the IDs. it won't override, because fckeditor is working inside an iframe, so it is a completely new document object, a blank html page, and nothing inside it affects the containing page.
i'll look into the add class thing. it's got to be easy.
here's how to get the user's stylesheet:
if (!@$UserManager) $UserManager = $Context->ObjectFactory->NewContextObject($Context, "UserManager"); $AccountUserID = ForceIncomingInt("u", $Context->Session->UserID); if (!@$AccountUser) $AccountUser = $UserManager->GetUserById($AccountUserID); $UserStyle = $AccountUser->StyleUrl . "vanilla.css";
and i think there's a way to edit the "editing page" that FCKeditor uses, so that all the CSS ids and classes would match up with a "real" vanilla comment.
oFCKeditor.Config["EditorAreaCSS"] = "' . $Configuration['WEB_ROOT'] . $UserStyle";
oFCKeditor.Config["EditorAreaCSS"] = "' . $UserStyle . '";
but i've become convinced that this is a dead end. i'm going to look into adding ajax post previewing like SirNot's Preview Post extension instead.
http://lussumo.com/addons/?PostBackAction=AddOn&AddOnID=179
But there is one problem!
Readme says that i have to Download Tinymce from http://tinymce.moxiecode.com/download.php
And then the path to tiny_mce_gzip.php should look like that: /path/to/vanilla/js/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php
but unfortunately in the latest Downloadpackage from TinyMCE there is no "tiny_mce_gzip.php" file in this directory?
What to do now?