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
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

wwalc - December 16, 2008 - 11:22

Not a big issue, but more people may experience the same problem. Thanks for reporting.

Feel free to attach a patch ;-)

#2

Bartezz - December 16, 2008 - 16:27

Will try, to create a patch in the next year... too many deadlines now :)

Cheers

#3

BerkeleyJon - February 13, 2009 - 19:43

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

wwalc - February 16, 2009 - 11:34
Status:active» needs review

#5

wwalc - February 16, 2009 - 17:46
Status:needs review» fixed

Thanks!

#6

Bartezz - February 16, 2009 - 20:49

Thanx :)

#7

System Message - March 2, 2009 - 20:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.