Hi -
I'm using fck with asp.net. Whenever I load the page, the editor does not show up, and I get the javascript error:
FCKLang is Undefined on fckeditor.html.
If I refresh the page(or reload it with a postback) the editor appears and works perfectly.
It is only on the first load of the page.
In the page I have:
<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<script type="text/javascript" src="fckeditor.js"></script>
<FCKeditorV2:FCKeditor BasePath="/FPIAExam/" id="txtCaseStudy" runat="server" Height="400px"></FCKeditorV2:FCKeditor>
Any Ideas?
Cheers
I'm using fck with asp.net. Whenever I load the page, the editor does not show up, and I get the javascript error:
FCKLang is Undefined on fckeditor.html.
If I refresh the page(or reload it with a postback) the editor appears and works perfectly.
It is only on the first load of the page.
In the page I have:
<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<script type="text/javascript" src="fckeditor.js"></script>
<FCKeditorV2:FCKeditor BasePath="/FPIAExam/" id="txtCaseStudy" runat="server" Height="400px"></FCKeditorV2:FCKeditor>
Any Ideas?
Cheers
RE: FCKEditor does not display on 1st page load
In fck_startup.js, In the LoadLanguageFile function there is a line containing this:
window.document.dir=FCKLang.Dir;
I'm not sure what document.dir is supposed to be but commenting out that line has stopped me from having to manually reload the page each time.
Just a side note though, I'm not using any of the advanced features so I very well may have broken something, but this was the object that was causing the rest of the js from loading. I still can't figure out why it won't work on the first load, but subsequent reloads work.
RE: FCKEditor does not display on 1st page lo
which files are required and where do they go.
the sample files are buried in the labyrinth of the download so it could be any f them