You are here

function wysiwyg_ckeditor_settings_form_validate_stylessets in Wysiwyg 7.2

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

#element_validate handler for CSS classes element altered by wysiwyg_ckeditor_settings_form().

1 string reference to 'wysiwyg_ckeditor_settings_form_validate_stylessets'
wysiwyg_ckeditor_settings_form in editors/ckeditor.inc
Enhances the editor profile settings form for CKEditor.

File

editors/ckeditor.inc, line 426
Editor integration functions for CKEditor.

Code

function wysiwyg_ckeditor_settings_form_validate_stylessets($element, &$form_state) {
  if (wysiwyg_ckeditor_settings_parse_styles($element['#value']) === FALSE) {
    form_error($element, t('The specified CSS classes are syntactically incorrect.'));
  }
}