Closed (duplicate)
Project:
FCKeditor - WYSIWYG HTML editor
Version:
5.x-2.1-beta
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2008 at 14:55 UTC
Updated:
4 Apr 2008 at 07:45 UTC
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
Comment #1
wwalc commentedCheck the latest stable release, it has been fixed.
Thanks!