Closed (duplicate)
Project:
FAQ_Ask
Version:
5.x-1.1
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2008 at 22:17 UTC
Updated:
10 May 2008 at 14:29 UTC
If you enable TinyMCE on your site, the FAQ title textarea becomes tinyMCE enabled too as it become multi-line. This is fine, except for it puts HTML tags in the titles of FAQ links that aren't then parsed. There are lots of tricks for removing TinyMCE from text fields, but it isn't obvious that the 'title' form needs to be disabled. Anyway, the code to put in your theme template.php is below:
function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) {
switch($textarea_name){
case 'nodewords-description':
case 'edit-nodewords-description':
case 'title': //title field - necessary for faq_ask questions.
case 'log': // book and page log
unset($init);
return $init;
break;
default:
return theme_tinymce_theme($init, $textarea_name, $theme_name, $is_running);
}
}
Hope this helps someone else, and might be useful to add to the readme.
Comments
Comment #1
nancydruIs there a way to do this in the module?
Comment #2
nancydruComment #3
scedwar commentedI would assume not. After installing TinyMCE I've been constantly adding form ids to my exceptions list, no module I've come across yet seems to have worked out how to do this.
Comment #4
nancydruhttp://drupal.org/node/254336 and http://drupal.org/node/235598