Fields to exclude/include with double dash
Bartezz - December 10, 2008 - 11:17
| Project: | FCKeditor - WYSIWYG HTML editor |
| Version: | 5.x-2.2-beta |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi,
I have a textarea field in a webform with the name "question | remarks", the automatically assigned field ID is "edit-submitted-question--remark".
When I want to exlude this field from using FCK I get an error: Invalid field specified.
An easy workaround is to go into webform -> components -> edit the textarea and manually change the field ID.
But I thought I'd mention it here anyway :)
Cheers

#1
Not a big issue, but more people may experience the same problem. Thanks for reporting.
Feel free to attach a patch ;-)
#2
Will try, to create a patch in the next year... too many deadlines now :)
Cheers
#3
Experiencing exactly the same problem in version 6.x-1.3-rc7
To fix the problem, in fckeditor.module, change line 499
FROM
if ($field && !preg_match("/^[a-z]+(\-[[:alnum:]]+|\\*|\-\\*)+$/i", $field))
TO
if ($field && !preg_match("/^[a-z]+(\-+[[:alnum:]]+|\\*|\-\\*)+$/i", $field)) {
You probably want to make the same change to the same regular expression on lines 430, 438, and 491
#4
#5
Thanks!
#6
Thanx :)
#7
Automatically closed -- issue fixed for 2 weeks with no activity.