Add WYSIWYG editor in your textarea in your module
This is how you can add a WYSIWYG editor like FCKeditor in a textarea from your module. You have installed your WYSIWYG module and FCKeditor and configure them as in the readme file. You have your module with your content type.
<?php
...
$form['additional_content'] = array(
'#type' => 'fieldset',
'#title' => t('Additional content'),
'#weight' => 5,
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#description' => T('Paste tables from Word or Excel by using...'),
);
$form['additional_cont']['content'] = array(
'#type' => 'textarea',
'#title' => check_plain($type->body_label),
'#default_value' => $node->body,
'#rows' => 20,
'#required' => FALSE,
'#description' => T('Comments can be added ...'),
);
$form['additional_cont']['format'] = filter_form(2, NULL, array('content', 'format'));
...
?>
Source: http://drupal.org/node/358316
Knowledge keywords: