[situation]
-Firefox 1.0.1
-FCK 2.0RC2
-XHTML
-PHP sending XML/XHTML headers
[problem]
FCK will only work when you don't use any dropdowns in the toolbar. When using any dropdown (styles etc.) a javascript error appears and only the editor displays without a toolbar.
[solution]
don't send X(HT)ML headers in your script and everything should work okay
[how to recognize these headers?]
something like this will be in your PHP code:
if(stristr($_SERVER['HTTP_ACCEPT'], "application/xhtml+xml"))
{
header("Content-type: application/xhtml+xml; charset=ISO-8859-1");
}
else
{
header("Content-type: text/html; charset=ISO-8859-1");
}
hope this helpes somebody. took me a very long time to figure this out
Mon, 02/28/2005 - 02:34
#1