The regular expressions used to check the validity of included/excluded field names in fckeditor_profile_validate($edit) and fckeditor_global_profile_validate($edit) functions, are not correct. They don't take into account the numeric characters that can be found in field names.

In one of our form, we can't disable FCKEditor for the field edit-field-video-embed-code-0-value which is not matched by the regex.

Replace

   if ($field && !preg_match("/^[a-z]+(\-[a-z]+)+$/i", $field)) {

by

    if ($field && !preg_match("/^[a-z]+(\-[a-z0-9]+)+$/i", $field)) {

in these functions.

Comments

wwalc’s picture

Status: Needs review » Closed (duplicate)

Check the latest stable release, it has been fixed.

Thanks!