Hy,
i searched this forum allready about this topic and found some messages about this problem, but could not understand the solution.
When I load an Page (aspx) with the editor on first time then the editor does not appear and I get the JavaScript - Error: "FCKLang not defined".
When I reload the page, or even when there are two editors on one page, then the secound Load / Editor will appear properly.
This happens on every new session.
What should I do to solve this problem?
I created the Editor within an CustomControl (ascx) whitch looks like this:
<script type="text/javascript" src="system/fckeditor.js"></script>
<script type="text/javascript">
function FCKeditor_OnComplete( editorInstance )
{
window.status = "Load complete";
}
</script>
<FCKeditorV2:FCKeditor id="FCKeditor1" runat="server" BasePath="/" value='This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.'></FCKeditorV2:FCKeditor>
Thx for any advice!
regards, Mansur
Tue, 02/22/2005 - 11:33
#1
RE: FCKLang is undefined on first load
oFCKeditor.Config[ "AutoDetectLanguage" ] = false;
RE: FCKLang is undefined on first load
thanks for your help, but it does not really help.
First off all it is not possible to place it in the header, because the Editor ist in an UserControl.
And also the same problem as described happens ... First load .... FCKLang ... next load its o.k. ... until the next session.
Regards,
Mansur
RE: FCKLang is undefined on first load
I declare the Defaultlanguage as following in the CodeBehind:
FCKeditor1.Config[ "AutoDetectLanguage" ] = "false" ;
FCKeditor1.Config["DefaultLanguage"] = "de";