Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorAndrewVos
    • CommentTimeSep 23rd 2006
     # 1
    Anyone though about adding TinyMCE to their vanilla? Is it not possible for some reason?!
    • CommentAuthorMadster
    • CommentTimeSep 23rd 2006
     # 2
    I thought about it but... eh... I'll stick with textformatters until I'm more comfortable with Vanilla code and the framework :)
    • CommentAuthorAndrewVos
    • CommentTimeSep 23rd 2006
     # 3
    I don't get what you mean. You're saying you think it's just to hard to do?
    •  
      CommentAuthorDinoboff
    • CommentTimeSep 23rd 2006
     # 4
    I am working on it
    • CommentAuthorithcy
    • CommentTimeSep 23rd 2006
     # 5
    i did it a long time ago. it was easy.

    however Xinha is much better in my opinion.
  1.  # 6
    Xinha is still beta quality in terms of stability
    • CommentAuthorAndrewVos
    • CommentTimeSep 23rd 2006 edited
     # 7
    ithcy: Can it be done with an extension? I am interested in doing it but have no idea how to add js for a specific page.

    I think this is something Vanilla really needs! It would be the first extension I download after an install!

    What would be nice to is if the extension could have settings for basic/advanced etc versions of TinyMCE!
    •  
      CommentAuthorBergamot
    • CommentTimeSep 23rd 2006
     # 8
    • CommentAuthorrusslipton
    • CommentTimeSep 24th 2006
     # 9
    +1 for Dojo.
  2.  # 10
    no not dojo, its too basic and incomplete
    for eg.
    no way to assign alignment to images like tinymce,
    no way to assign alt text either.
    no way to add target=_blank or tooltip for links
    etc
    etc
    • CommentAuthorXandi
    • CommentTimeSep 24th 2006
     # 11
    Would also like such an extension ;)
  3.  # 12
    @Bergamot: The Dojo control absolutely rocks! Its lightning fast! If it's stable, how hard would it be to integrate into Vanilla?
  4.  # 13
    Is anyone working on this? I think a slick (discreet) integration of the Dojo control could really benefit Vanilla (and not just me;-)

    (now... why did I have to use square brackets to make that really look bold?)
    • CommentAuthoralnokta
    • CommentTimeSep 28th 2006
     # 14
    Is that stuff you are talking about similar to Quicktags and html formatter extensions?
    •  
      CommentAuthor3stripe
    • CommentTimeSep 28th 2006
     # 15
    Yeah.... check out http://tinymce.moxiecode.com/example_full.php?example=true, it's a full wysiwyg text formatter with a load of almost word like options, and plugins to boot...
    •  
      CommentAuthorDinoboff
    • CommentTimeSep 28th 2006
     # 16
    I am working on a tinymce plugin.

    It is almost done; I am finding a way to have the tinymce validator and vanilla formatter stripping away the same tags and attribute.
  5.  # 17
    I tried the TinyMCE link 3stripe sent - I can't highlight text using the mouse since it interferes with Firefow mouse gestures!!

    Anyhow, would it be possible to make an extension where you could choose between TinyMCE and Dojo? Or perhaps modify one into the other when the first is completed?

    I think I'd only want bold, italic, bulletpoint and add hyperlink rather than all the gazillion buttons!
  6.  # 18
    ...I've now tried the TinyMCE simple example, which is pretty much what I'd want! Though it still interferes with my FF extension ;-)
    • CommentAuthorithcy
    • CommentTimeSep 28th 2006
     # 19
    i can tell you all this from extensive on-the-job experience with these things:
    tinymce mangles complex html code. its xhtml parser is not so great. also tinymce is a pretty heavy download for the user, despite its name. i won't use it.
    xinha is nice but a pain in the ass to configure. i've never had any stability problems with it, MySchizoBuddy.
    fckeditor does the best job of preserving your code once you get it configured. but it's got a couple of weird display bugs. nothing too bad.
    htmlarea is the best all around, simple and stable. unfortunately the new versions are no longer free so you have to hunt for an old one.

    these are of course the editors with more features than just "bold" and "italic" and "smileyface." if you want one of those, i'm sure there are plenty around.
  7.  # 20
    Thanks for the briefing, Itchy! I wouldn't want to download more features than I'd use - and I'd use quite few features. From a very brief glance, I thought Dojo looked rather promising.
    • CommentAuthorithcy
    • CommentTimeSep 28th 2006
     # 21
    yeah, dojo does look nice. i'm trying to figure out how to separate the text editor control from the rest of the toolkit so i can make it into an add-on.
  8.  # 22
    itcy, xinha is trying to put any and all features in it, including a toilet cleaner. I used it more thana year back and it is still not anywhere near stable, cause the developer keeps adding new stuff in it. Milesone 1.0 is only 78% done, then we will have the beta and RC rounds and god knows when it will be released in a stable form.

    One problem with all these editors is that they are generic, having it seemlessly integrate with vanilla will be easy for all features except when u start using server side features. like uploading images to your server securely. that is going to be a big pain.

    thoma heath u should change ur ff gestures. :)

    In the end it all boils down to the fact whether it generates the correct Xhtml code and doesn't loose my content. Dojo can do that.
  9.  # 23
    You guys can also try the Spaw Text Editor
    •  
      CommentAuthorDinoboff
    • CommentTimeSep 28th 2006 edited
     # 24
    Try http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=175.

    It is a quick and basic integration of the Dojo editor. Like you will see there is some work to do on widget template I think.

    nb: I am using kses for validation, so you can't use the style attribue.
    • CommentAuthorithcy
    • CommentTimeSep 28th 2006
     # 25
    nice one, dinoboff
    • CommentAuthorithcy
    • CommentTimeSep 28th 2006
     # 26
    man dino, you've got a weird way of indenting code :)

    do you think it would be a better idea to recommend installing dojo to the global forum/js/ folder instead of the extension folder? that way if someone else builds an extension based on dojo, there won't be two copies?
    • CommentAuthorithcy
    • CommentTimeSep 28th 2006
     # 27
    also here are nice looking replacements for those ugly Bold, Italic, etc. icons
    (extract to the extensions/DojoEditor/library/dojo-0.3.1-widget/src/widget/templates/buttons folder)

    these are the ones they have on the dojo demo site.
  10.  # 28
    itchy thanks, Apparently the dojo version 0.3 by default uses those ugly buttons.
    dojo 0.2 uses the cool ones. the demo u saw earlier was for dojo 0.2. plus dojo is actually working on Editor2, its experimental for now

    plus i got FCK editor working on my test forum. it does show the toolbar. the code it generates is buggy though.
    • CommentAuthorithcy
    • CommentTimeSep 28th 2006
     # 29
    really? i just today finished a 130-page site using fckeditor for the content on each page and they all passed validation. maybe i'm just not trying hard enough to break it :)
  11.  # 30
    i meant the code like <strong>Srong text</strong> generated by fckeditor ins't rendering as bold text inside vanilla. Vanilla is outputting it as just plain text.
    • CommentAuthorithcy
    • CommentTimeSep 28th 2006
     # 31
    is it rendering the tags like that too? you've got to make sure it's posting in Html format.
  12.  # 32
    yeah got it working now.
    here is the screenshot
    TODO
    make custom config files so the original fckeditor files are not touched
    remove advanced features, don't want people to muck up their forums
    make a plugin out of it *gulp*
    • CommentAuthorithcy
    • CommentTimeSep 28th 2006
     # 33
    nice... i'll use it when you're done :)
    •  
      CommentAuthorDinoboff
    • CommentTimeSep 29th 2006 edited
     # 34
    good idea for the location of the dojo... And what's wrong with my way of indenting code lol?

    ps: I made a mistake in my previous post. I should have say:

    "nb: I am using kses for validation, so you can't use the style attribue."
  13.  # 35
    @Dino: Good work! I'll try the Dojo add-in as soon as possible, which means, next week!

    Spaw looks interesting too.

    @itchy: the url to the icons above is broken.
    • CommentAuthorithcy
    • CommentTimeSep 29th 2006
     # 36
    thanks thomas... fixed
  14.  # 37
    ok done.
    both tinymce and fckeditor are available
    have fun. let me know if there are any problems
    • CommentAuthorithcy
    • CommentTimeSep 30th 2006
     # 38
    nice work! just one thing... in default.php, you are using hardcoded paths. you need to use
    oFCKeditor.BasePath = "' . $Configuration['WEB_ROOT'] . 'js/FCKeditor/" ;
    oFCKeditor.Config["CustomConfigurationsPath"] = "' . $Configuration['WEB_ROOT'] . 'extensions/FCKeditor/vanillaconfig.js";
    instead. my forum isn't located in /vanilla :)
    other than that, great job!
  15.  # 39
    OK fixed and new version uploaded
    Is it working nicely, any bugs so far.

    PLus care to rate the extension.

    one more thing, Any idea on how to create an admin part to the extension.
    What I want is a list of radio buttons, on what features u want in the toolbar. Just select the buttons and save it and those features will be added to the toolbar.
    • CommentAuthorithcy
    • CommentTimeSep 30th 2006
     # 40
    yeah, that can be done.
    i made a couple of other fixes to the code - added a stylesheet to the editor area so that the comments box looks like it will really look on the page, removed the full screen preview button, and hid the "big input" button.

    i uploaded it to here if you want to play with it or include the mods in your addon.
    • CommentAuthorithcy
    • CommentTimeSep 30th 2006
     # 41
    yeah, works great! i'll rate it.
  16.  # 42
    great work folks!
    • CommentAuthorithcy
    • CommentTimeSep 30th 2006
     # 43
    hmm.. it appears to be messing up the formatting of already-existing Html comments.
    •  
      CommentAuthorDinoboff
    • CommentTimeSep 30th 2006 edited
     # 44
    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.
  17.  # 45
    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
    • CommentAuthorithcy
    • CommentTimeSep 30th 2006
     # 46
    you don't need preview since with the stylesheet, the comment already looks exactly how it's going to look when posted.
  18.  # 47
    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.
    • CommentAuthorithcy
    • CommentTimeSep 30th 2006
     # 48
    "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.
  19.  # 49
    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.
    • CommentAuthorithcy
    • CommentTimeSep 30th 2006
     # 50
    buttons would be better.