Removing tinymce from textareas
Added Tue, 11/13/2007 - 15:11
TinyMCE has a habit of popping up right where you don't want it - the log field on a node edit page is a good example.
Lucklily it is a relatively easy job to theme out tinymce for a particular textarea.
The following theme override should go into your template.php file
function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) {
switch($textarea_name){
case 'nodewords-description':
case 'edit-nodewords-description':
unset($init);
return $init;
break;
default:
return theme_tinymce_theme($init, $textarea_name, $theme_name, $is_running);
}
}
Just keep adding extra cases for any additional textareas ...
Bookmark/Search this post with:

Delicious
Digg
Reddit
Technorati




