Design903

FCKEditor Controls Missing in ColdFusion

I have used FCKEditor for WYSIWYG for many of the custom ColdFusion applications I have built. Recently the FCKEditor stopped rendering and the code was just rendering a normal textarea.


It turns out there is a bug in the FCKEditor code for Firefox and other Mozilla browsers.
The problem is on line 47 of fckutils.cfm located in the root of the fckeditor install:

stResult = reFind( "gecko/(200[3-9][0-1][0-9][0-3][0-9])", sAgent, 1, true );

Change it to something like this:

stResult = reFind( "gecko/(20[0-9][0-9][0-1][0-9][0-3][0-9])", sAgent, 1, true );

I thought I would share this and thanks to this post for helping find the solution.

Comments
Brian Swartzfager's Gravatar I ran into this same problem just the other day. I solved in by upgrading to the 2.6.6 version of FCKeditor (http://ckeditor.com/blog/FCKeditor_2.6.6_released). But then again, I only had three sites I needed to fix.
# Posted By Brian Swartzfager | 2/25/10 12:49 PM
HTMLfx's Gravatar This comment was a life saver! Thank you soo much for taking the time to share.
# Posted By HTMLfx | 5/20/10 3:51 PM
Web Design Company Serving:

Longview
Tyler
Kilgore
Marshall
Jefferson
Texarkana
Nacogdoches
Lufkin
East Texas

© 2009 JMP Consulting, Inc. dba Design903 - Longview, Texas Web Design

Home | Contact Us | Site Map | Work | Services | Pricing