Enable ck editor for textarea I have a custom form and a textarea in it as follows :

$form['fieldset']['email_template'] = array('#type' =&gt; 'textarea',
    '#title' =&gt; t('E-mail template content'),
    '#default_value' =&gt; '',    
    '#description' =&gt; t('A valid template for email trigger.&lt;b&gt; Please type ":" for variable suggestions&lt;/b&gt;'),
    '#required' =&gt; TRUE,
    '#cols' =&gt; 60,
    '#resizable' =&gt; TRUE,
    '#rows' =&gt; 5,
    //'#type' =&gt; 'text_format',
    //'#base_type' =&gt; 'textarea',
  );


When i installed the ckeditor module and enabled it , the following text appears under textarea ,


Then i gave sky:notification/addTemplate.edit-email-template in the visibility settings Fields to exclude/include: after enabling the include option in Use inclusion or exclusion mode:
Try adding '#wysiwyg' =&gt; TRUE,

Also i think you need to keep '#type' =&gt; 'text_format', instead of textarea.