2

How to disable WYSIWYG for particular content type?

http://drupal.org

Hello,

I created new content type, that I want to edit in HTML, not WYSIWYG. Indeed, there is a button in my WYSIWYG editor (tinyMCE) to show HTML. I want to disable WYSIWYG at all for this content type. Is it possible and how to do this if possible?

There is another problem for File type also - WYSIWYG does not work, and all options below the edit field are not accessible (Input format, Revision information, Comment Settings, Publishing options appear as static texts, not as links and menus.)

Regards,
Ivan

Read »
Created by aaron 2 years 13 weeks ago
Category: Tutorials   Tags:

solution for "How to disable WYSIWYG for particular content type

dayana 1 year 40 weeks 5 days 13 hours ago

function modulename_form_alter($form_id, &$form) {
if ($form_id == 'forum_node_form') {
$form['body_filter']['body']['#wysiwyg'] = FALSE;
}
}

by using this code you can disable editor.

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Tags for How to disable WYSIWYG for particular content type?

Recent comments