You are here

function wysiwyg_wymeditor_settings_form in Wysiwyg 7.2

Same name and namespace in other branches
  1. 6.2 editors/wymeditor.inc \wysiwyg_wymeditor_settings_form()

Enhances the editor profile settings form for WYMeditor.

See also

http://wymeditor.readthedocs.org/en/latest/version_1.0_and_0.5/getting_s...

1 string reference to 'wysiwyg_wymeditor_settings_form'
wysiwyg_wymeditor_editor in editors/wymeditor.inc
Plugin implementation of hook_editor().

File

editors/wymeditor.inc, line 96
Editor integration functions for WYMeditor.

Code

function wysiwyg_wymeditor_settings_form(&$form, &$form_state) {
  $profile = $form_state['wysiwyg_profile'];
  $settings = $profile->settings;
  $settings += array(
    'block_formats' => 'p,blockquote,pre,h2,h3,h4,h5,h6,div',
  );
  $form['css']['#description'] = t('Note: WYMeditor can only load a single stylesheet into the editor.');
  $form['css']['block_formats'] = array(
    '#type' => 'textfield',
    '#title' => t('Block formats'),
    '#default_value' => $settings['block_formats'],
    '#size' => 40,
    '#maxlength' => 250,
    '#description' => t('Comma separated list of HTML block formats. Possible values: <code>@format-list</code>.', array(
      '@format-list' => 'p,h1,h2,h3,h4,h5,h6,blockquote,pre,th',
    )),
  );
}