views:

182

answers:

1

Is it possible to use a WYSIWYG editor in texarea for Drupal site configuration form (system_settings_form).

This is how the configuration is coded now...

$form['my_module_text_bottom'] = array(
    '#type' => 'textarea',
    '#title' => t('Some text'),
    '#default_value' => variable_get('my_module_text_bottom', 'This is configurable text found in the module configuration.'),
    '#size' => 1024,
    '#maxlength' => 1024,
    '#description' => t("Some text."),
    '#required' => TRUE,
  );
  return system_settings_form($form);
A: 

The WYSIWYG or CKEditor modules should be able to do this.

Nicholai
yes, should be. Just wondering how to implement this.
bert
I personally like CKEditor; you would download and install that module, then download the CKEditor library from the official site and place it in the correct folder. The instructions walk you through this.
Nicholai