Closed (fixed)
Project:
FCKeditor - WYSIWYG HTML editor
Version:
5.x-2.2-beta
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2008 at 11:17 UTC
Updated:
2 Mar 2009 at 20:50 UTC
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
Comments
Comment #1
wwalc commentedNot a big issue, but more people may experience the same problem. Thanks for reporting.
Feel free to attach a patch ;-)
Comment #2
bartezz commentedWill try, to create a patch in the next year... too many deadlines now :)
Cheers
Comment #3
berkeleyjon commentedExperiencing 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
Comment #4
wwalc commentedComment #5
wwalc commentedThanks!
Comment #6
bartezz commentedThanx :)