用于Drupal配置表单的texarea中的WYSIWYG编辑器

ber*_*ert 5 forms configuration wysiwyg textarea drupal

是否可以在texarea中使用WYSIWYG编辑器用于Drupal站点配置表单(system_settings_form).

这就是配置现在编码的方式......

$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);
Run Code Online (Sandbox Code Playgroud)

Nic*_*lai 0

WYSIWYG 或 CKEditor 模块应该能够做到这一点。