FAQ and Faq_Ask have multiline title fields but TinyMCE should not be playing in the title playground. How can we disable that?
http://drupal.org/node/235069

Comments

dinis’s picture

I've been trying to figure this out too, anyone got any idea?

nancydru’s picture

Title: How to disable TinyMCS on Title fields » How to disable TinyMCE on Title fields

Apparently not.

ceej23’s picture

The module README details the theme_tinymce_theme() function which lets you turn off TinyMCE for any textarea. Is this what you're after?

nancydru’s picture

Well that presupposes that one has the module to read that. I do not. I merely maintain modules that this is affecting.

People have mentioned that there is a place where this can be done on a field by field basis. But I am a module developer who wants to head the problem off before it happens. What I need is a way to say, "Here's my form, but please don't modify it."

nancydru’s picture

After hunting, I found the documentation pages in the Contributed modules section of the Handbooks. This will not help me, I don't think, because I'm looking at the run-time code as opposed to theme-time code.

stella’s picture

+1 for NancyDru's request

timefor’s picture

+2 NancyDru's request.

I have a couple of multiline text boxes that I don't want html to be posted in it. I think this might be simple enough... the default config of TinyMCE makes HTML the default input. If we changed that to false then wouldn't that make plain text the new default?

My thinking is that then anytime you allowed HTML as an input MCE would kick in?

Is there another way though to turn on / off TinyMCE for some text boxes?

- Jayson

pauldawg’s picture

Priority: Normal » Critical

I have tried adding a new Filter to eliminate all tags but this still doesn't work, because the validation for the forms will still look at the HTML that is output with TinyMCE enabled.

For example, I have a module that asks for an email address to send notifications to. TinyMCE is enabled, so once I enter an email address, even with a Plain Text filter enabled, I get a warning saying <p>yourname@email.com</p> is not a valid email address.

TinyMCE is almost perfect except for this fact, but nevertheless I may be forced to disable it entirely which would really hamper my ability to roll out my site, which is scheduled to go live very soon. Please someone help me disable TinyMCE on a given field while enabling it on another field on the same page!

nancydru’s picture

pauldawg’s picture

Thank you Nancy! That worked perfectly! Ahhh....

mupsi’s picture

Issue summary: View changes
Status: Active » Closed (outdated)