Attach WYSIWYG to Drupal Form With a custom Drupal form, how can you attach WYSIWYG functionality to a textarea with the WYSIWYG module?
The wysiwyg module is tied to the input format system.

Use '#type' =&gt; 'text_format' when defining your text area.