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?

13

Comments

  • great work folks!
  • hmm.. it appears to be messing up the formatting of already-existing Html comments.
  • edited September 2006
    On forum that were you using the sirnot's formatter before, you should replace the kses formatter by the sirnot formatter or if don't the need the style attribute, you just need to add in the list of tags allowed, the tags you need with their attributes.
  • itchy I'll look into it and add it, regarding the fullpage preview. there should be a way to make it popup, like that in tinymce. I'll see what i can find. PLus we need preview don't we. Dinoboff. you are talking to me or itchy. Do i have to change it to SirNots formatter or itchy has to
  • you don't need preview since with the stylesheet, the comment already looks exactly how it's going to look when posted.
  • edited September 2006
    you made a custom syle sheet, won't that override the users theme style sheets. Perhaps a way to load the users own theme.
    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.
  • "you made a custom syle sheet, won't that override the users theme style sheets."

    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.
  • ok I included you in the Authors list as well. :) one more thing to look into is the pre or code text. I can enable Styles list in it and that should take care of it, or should we make a button for pre or code text.
  • buttons would be better.
  • itchy, what i meant was, that lets say for a link text, the user has purple color, but the stylesheet with fckeditor will show it blue, which isn't what the user wants. the stylesheet inside the iframe should be the same as the one the user is using.
  • ithcyithcy New
    edited September 2006
    yeah, you're right. i think it can be easily fixed though.
    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.
  • i have been looking into the editing page thingy. some of them are easy to configure, while other are quite complicated to do. just changed the code style. FCkeditor spits out a span tag with code class. So i changed it so it spits out a code tag instead, so the users own stylesheet will work now. will look into how other styles can be changed.
  • edited October 2006
    itcy where should i use that code. like this
    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.
  • also we should probably move this discussion to the fckeditor thread.
  • Wow. I made this thread a while ago and it's done! Well, not TinyMCE but Dojo looks alright!
  • Andrew tinymce is also done.
  • edited October 2006
    I wanted to install TinyMCE
    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?
  • There isn't. :S are you sure. If not then that website link also has the link to download the TinyMCE compressor. which is pefered. if you don't want to then u can use tiny_mce.js. In the default.php, change tiny_mce_gzip.php to tiny_mce.js the gzip version is compressed version which makes it faster to load thats it. the functionality of compressed and non conpressed is the same
  • Yeah, TinyMCE doesn't work properly in IE7. Joy. Thanks guys, you really are legends. This is most definately the best open source community I have ever seen.
This discussion has been closed.