Drupal 6 - Disable CK Editor wysiwyg programmatically
Need to disable the CK Editor programmatically for specific form fields?
New form method
function mymodule_settings_form() { $form['foobar'] = array( '#type' => 'textarea', '#title' => t('foobar'), '#default_value' => "foobar", '#required' => FALSE, '#wysiwyg' => FALSE, ); return system_settings_form($form); }
form alter method
function mymodule_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'mymodule_settings_form') { $form['foobar']['#wysiwyg'] = FALSE; } }
Drupal 5 - Disable FCKEditor per content type
Anyone using the Drupal module for FCKEditor can tell you the number of times its made their life easier. Install and configure it and you have yourself an instant (and FREE) WYSIWYG HTML Editor.
I mentioned in my previous posts, I am currently working on making Drupal Forums look and function like PHPBB. Having installed the superb Smileys Module by Gurpartap Singh I noticed FCKEditor was breaking the Smilie insertion on the nodepages.









