Disable tinymce on a textarea

aina - April 12, 2007 - 15:43

Hi!

Can I automatically disable tinymce in a particular textarea?

Thanks,

Aina

Moxie

geologyrocks - April 12, 2007 - 15:49

I use Moxie - an offshoot of TinyMCE, but it should be possible in TinyMCE also to exclude textareas on certain pages, e.g. in the Admin pages.

Look in the admin for TinyMCE and you should see a "Visibility" section. To prevent TinyMCE appearing on admin page put admin/* on the textbox and click the "Show on every page except the listed pages." radio button.

You could also turn on the "Show disable/enable rich text editor toggle:" such that you can turn of TinyMCE when it gets in the way.

Hope that helps.

Jon

-----------------------------------------------
GeologyRocks: http://www.geologyrocks.co.uk

I am looking for the same

mrsocks - June 20, 2007 - 15:19

I am looking for the same thing "to disable the tinymce editor on certain textboxes".

On my 'edit content' page, there is the body copy area textbox that i want to have the editor, but then there is also a comment box that I dont want to have the editor. Is this possible?

Doesn't look like it is an option in TinyMCE

mgifford - September 25, 2007 - 15:01

I was looking to implement this too.

Closest I could find was:
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/mode

For the moment I'm just setting TinyMCE as disabled by default and assuming that people will enable it when it is required.

Mike
--
OpenConcept | SEO | Tech | Screencasts

For other content types

jiangxijay - October 5, 2007 - 17:04

This doesn't work for other content types because, as soon as you go into node editing, the URL changes to node/ etc. The path goes away.

Just follow the visibility

BradM - October 6, 2007 - 05:29

Just follow the visibility example, put 1 line after line where you don't want it to appear (make sure you hit the radio button for this option.)

Different examples,

node/add/*
node/add/story/*
node/*/story/*
forum/*

First line will not show tinymce on any add new node pages; second will not show tinymce on any added story nodes only, third example will not show tinymce on any pages with story nodes (edit/add/delete) and fourth example won't show tinymce on any form in your forums.

Yes

jiangxijay - October 10, 2007 - 02:20

Oh, yeah! I'm still wondrously discovering meaningful URLs for *everything*. Thanks!

page specific not textarea specific

mgifford - November 7, 2007 - 12:49

That works quite fine if you want to disable all of the textareas on a page. However what I wanted (and what I thought the original post was on), was disabling a specific text area on a page. So perhaps they'd have a form with a few textarea boxes, but one of them needs to just use plain text and not have the wysiwyg applied.
--
OpenConcept | SEO | Tech | Screencasts

Text area control desired

jiangxijay - November 7, 2007 - 23:57

Agreed.

Solution

meerkat - November 8, 2007 - 13:51

The solution posted at the following does the job:

http://avocadoshake.net/blog/2007/08/20/how-disable-tinymce-fields-drupa...

It would seem that the

bigbman - December 11, 2007 - 22:02

It would seem that the TinyMCE module could have a setting to enable or disable for specific node type forms (i.e. enable only for Books or disable for Comments). Too bad it doesn't have this...

 
 

Drupal is a registered trademark of Dries Buytaert.