You are here

function wysiwyg_tinymce_settings_form_validate_blockformats in Wysiwyg 6.2

Same name and namespace in other branches
  1. 7.2 editors/tinymce.inc \wysiwyg_tinymce_settings_form_validate_blockformats()

#element_validate handler for theme_advanced_blockformats element added by wysiwyg_tinymce_settings_form().

1 string reference to 'wysiwyg_tinymce_settings_form_validate_blockformats'
wysiwyg_tinymce_settings_form in editors/tinymce.inc
Enhances the editor profile settings form for TinyMCE.

File

editors/tinymce.inc, line 633
Editor integration functions for TinyMCE.

Code

function wysiwyg_tinymce_settings_form_validate_blockformats($element, &$form_state) {

  // Remove any white-space from 'theme_advanced_blockformats' setting, since
  // the editor relies on a comma-separated list to explode().
  form_set_value($element, preg_replace('@\\s+@', '', $element['#value']), $form_state);
}