I cannot load FCKeditor in firefox, but IE works perfectly. In the firefox error console, the errors are:
Error: illegal character
Source File: http://localhost:8080/TestSite/fckedito ... e_gecko.js
Line: 1, Column: 1
Source Code:
/*
Error: FCKConfig is not defined
Source File: http://localhost:8080/TestSite/fckeditor/fckconfig.js
Line: 27
Error: FCKBrowserInfo is not defined
Source File: http://localhost:8080/TestSite/fckedito ... olbar=Test
Line: 125
Error: FCKConfig_LoadPageConfig is not defined
Source File: http://localhost:8080/TestSite/fckedito ... olbar=Test
Line: 164
Error: FCKTools is not defined
Source File: http://localhost:8080/TestSite/fckedito ... olbar=Test
Line: 176
Error: FCK_ContextMenu_Init is not defined
Source File: http://localhost:8080/TestSite/fckedito ... olbar=Test
Line: 195
Error: InitializeAPI is not defined
Source File: http://localhost:8080/TestSite/fckedito ... olbar=Test
Line: 210
The following lines are my code in my jsp:
<%
oFCKeditor = new FCKeditor( request, "ParamenterName" );
oFCKeditor.setBasePath( "/TestSite/fckeditor/" );
oFCKeditor.setToolbarSet("Test");
oFCKeditor.setHeight("300");
out.println( oFCKeditor.create() ) ;
%>
I have checked the fckeditor.html does exist in my TestSite/fckeditor/editor directory.
I tried to add a .htaccess file with "AddType text/xml .xml" in my fckeditor folder as indicated in http://docs.fckeditor.net/FCKeditor_2.x ... #FFToolbar, but it still doesn't work.
I am using Firefox 3.0.1, I also tried to test on Firefox 2.0, same result.
Anyone could help?
Wed, 09/10/2008 - 23:54
#1
Re: Cannot load FCKeditor in firefox
I have tried the demo from http://www.fckeditor.net/demo and it works fine. But when I open my http://localhost:8080/TestSite/fckedito ... /index.jsp, no fckEditor toolbox/textarea showing.
I have tried to clear my browser's cache, still no luck.
I'm using the latest fckeditor 3.26
Re: Cannot load FCKeditor in firefox
<FCK:editor instanceName="editor" value="this is me" />
Re: Cannot load FCKeditor in firefox
Re: Cannot load FCKeditor in firefox
Re: Cannot load FCKeditor in firefox
When I add <%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %> to my jsp page, it gave me an error of: This absolute uri (http://java.fckeditor.net) cannot be resolved in either web.xml or the jar files deployed with this application.
Re: Cannot load FCKeditor in firefox
Please read the documenation to resolve this issue.
Re: Cannot load FCKeditor in firefox
Hi, I was also getting the same error. It was because of some special character/(character encoding) in below line in "fckeditorcode_gecko.js"
"var FCKXHtmlEntities=......................'g');};"
A Quick/Temporary fix for it is, copy it in a Editor (like Editplus) convert it to UTF-8 and then paste it back in "fckeditorcode_gecko.js" that should fix your issue.
I did that & its working fine for me now, the fck editor is getting displayed in firefox but in error console I am getting css error.
Re: Cannot load FCKeditor in firefox
Re: Cannot load FCKeditor in firefox