I'm wondering if its possible to disable tinymce specifically for the citizenspeak module?
Because the module sends emails on, and it doesn't use MIME mail, html code keeps showing up in the messages, and of course they have to look professional. I can't disable citizenspeak through the tiymce admin system, since sometimes when editing a ciizenspeak node, the path is simply node/edit/38 and that can't be distinguished from a page or story which I would want tinymce to load on. I can't find anything in the code that would enable me to disable it.
Any ideas? I don't mind fiddling with the code.
thanks.

Comments

quicksketch’s picture

Try overridding the theme_tinymce_theme() function using phptemplate. In this function there is a switch statement that excludes (or includes) tinyMCE on different text areas. For instance, you'll notice tinyMCE never shows up on certain textareas already (like log entries for books).

Instructions for theming tinyMCE are included at the bottom of the INSTALL.txt file that comes with the 4.6 version.

fudge714’s picture

Hey,
Unfortunately I'm using an XTemplate theme, so I can't include php can I? I suppose I can just edit the tinymce.module file instead?
Thats what I've tried and it doesn't seem to work. The code for the text area is this:

So I've tried referring to it as 'edit[email_message]' and 'edit-email_message', but neither seem to work.

Thanks

fudge714’s picture

Sorry, didn't show that code... it was just the name=edit[email_message] and id=edit-email_message that were relevant

quicksketch’s picture

I'm not familiar with XTemplate, though it seems like there must be a better solution than editing the module itself. Anyway, you're pretty close. Just refer to the field as 'email_message' in the theme function.

kreynen’s picture

Status: Active » Closed (fixed)

closing all 4.6 issues