ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Is there a way to disable TinyMCE by Weblog?

July 21, 2009 11:18am

Subscribe [2]
  • #1 / Jul 21, 2009 11:18am

    Avi Frier

    59 posts

    I have created a weblog that will be used as my banner rotator/ad manager. (I’ll be posting a great How-To on this very soon).

    Some of the banners in my rotation are not physical banners, but rather strings of javascript that call up Google Adsense, Commission Junction banners, etc. So, I need to have a textarea field where I can enter the code.

    TinyMCE (of course) replaces the textarea with its own editor, which (of course) completely screws up the javascript (or just deletes it altogether).

    Does anyone know of any way that I can tell EE not to use TinyMCE in place of the textarea fields JUST in the weblog that I’m using as my ad manager?

    Thanks!

    Avi

  • #2 / Jul 24, 2009 1:11am

    Focus Lab Dev Team

    1129 posts

    TinyMCE (of course) replaces the textarea with its own editor…

    How are you implementing TinyMCE? I use it on a number of occasions with Leevi Graham’s extension. I prefer his approach because you can use Moxicode’s parameter to target specific textareas only as opposed to all textareas on a page. If you install Leevi’s extension you just need to change the field type of the entry fields you WANT TinyMCE to be in. Then you can keep your Ad entry field to textarea and it should work out.

    LG TinyMCE:
    http://leevigraham.com/cms-customisation/expressionengine/lg-tinymce/

  • #3 / Jul 24, 2009 10:47am

    Avi Frier

    59 posts

    Thanks for the suggestion.  LG TinyMCE looks like it will be exactly what I need, but there is some weirdness going on. The fields using LG TinyMCE are all appearing doubled on the edit screen.  I’m uploading a screenshot. Have you ever seen anything like this?  It doesn’t happen when I switch them back to Textarea.

  • #4 / Jul 24, 2009 10:52am

    Focus Lab Dev Team

    1129 posts

    That’s very peculiar. I’m not sure what would cause that. I’d start by checking if you’re running the latest version of TinyMCE. Then possibly check to see if any other extension is conflicting with it.

  • #5 / Jul 24, 2009 10:54am

    Avi Frier

    59 posts

    Problem solved! I went into the TinyMCE settings and changed the mode from textareas to none. Thanks!

  • #6 / Jul 24, 2009 10:57am

    Focus Lab Dev Team

    1129 posts

    Problem solved! I went into the TinyMCE settings and changed the mode from textareas to none. Thanks!

    Fantastic! Glad to help 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases