In firefox 1.0.7, I'm trying to run the demo's on my server.
I receive the following error:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://www.myserver.com/FCKeditor/edito ... gecko_2.js :: anonymous :: line 22" data: no]
I've enabled the .htaccess file, and I removed gzip compression for javascript files in my httpd.conf file thinking that might be the problem.
Strangely, using the demo for multiple editor instances (javascript sample 09), the basic toolbar shows up.
In IE everything works fine. Is this just a me problem? Everywhere else I see FCKEditor demos they work just fine. Or maybe there's a specific toolbar item that is causing the problem?
With the compressed javascript, I can't really read through and figure out what is happening. The apache error log does not seem to provide any assistance either.
Fri, 02/17/2006 - 02:36
#1
RE: Firefox - Toolbars not showing up in Demo
As a follow up, I've tried testing out both the tar.gz and .zip installs for the most recently released FCKEditor 2.2 thinking there may have been a corruption with my download.
Examining the http headers for fckeditorcode_gecko_2.js, they seem to be sending the correct mime type headers.
RE: Firefox - Toolbars not showing up in Demo
Woohoo! I found the solution!!!
I narrowed the problem down to a single toolbar item by process of elimination. It seems my problem lied with the "styles" toolbar icon. Looking further, I found that styles were defined within an XML file.
I examined my http headers and saw that I was serving up application/rss+xml as a mime type for xml files - since this is appropriate for my xml rss feeds in other directories. Firefox really didn't like this though. I updated the .htaccess file in my FCKeditor directory with the following line:
AddType text/xml .xml
which essentially overrides other mime type settings I have. When I did that, the styles worked correctly - both in IE (where I hadn't yet noticed they were broken) and firefox. The toolbars displayed correctly and everything.