Dec 07

FCKeditor in Firefox - Illegal Character JavaScript error

Tag: Apache, FCKeditor, Techjs @ 5:38 pm

For some reason, FCKeditor would not load in Firefox 2.0 even though it loaded in IE just fine. Turns out Apache was serving up the javascript files as the wrong FileType, so Firefox would choke on some jibberish characters:

Error: illegal character
Source File: http://www.myserver.com/FCKeditor/editor/js/fckeditorcode_gecko.js
Line: 1, Column: 1
Source Code: /*

The fix is easy enough, simply add an .htaccess file to your dir containing the following:

AddType application/x-javascript .js

Now FCKeditor should work fine in Firefox.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

One Response to “FCKeditor in Firefox - Illegal Character JavaScript error”

  1. Jon says:

    Wow…I can’t believe I stumbled across this page…it solved the exact problem I was having. Thanks.

    Jon

Leave a Reply