Skip to main content

Removing tinymce from textareas

An article from ComputerMinds - A leading UK Drupal development agency since 2005
13th Nov 2007

Mike Dixon

Senior Mind

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) {
    case 'nodewords-description':
      case 'edit-nodewords-description':
    return $init;
    return theme_tinymce_theme($init, $textarea_name, $theme_name, $is_running);

Just keep adding extra cases for any additional textareas ...

You might also be interested in this article about removing tinymce from the block edit screen when the format is set to PHP

Hi, thanks for reading

ComputerMinds are the UK’s Drupal specialists with offices in Bristol and Coventry. We offer a range of Drupal services including Consultancy, Development, Training and Support. Whatever your Drupal problem, we can help.