FCKLang is undefined on first load

This is the right place to exchange ideas, thoughts with our community.
Note: Click here for Feature Requests or Bug Reports.

FCKLang is undefined on first load

Postby mansur22 » Mon Feb 21, 2005 2:58 am

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
mansur22
 
Posts: 3
Joined: Mon Feb 21, 2005 2:58 am

RE: FCKLang is undefined on first load

Postby oldshoes » Tue Feb 22, 2005 1:36 am

Something like this in the declaration in the <head>;
oFCKeditor.Config[ "AutoDetectLanguage" ] = false;
oldshoes
 
Posts: 2
Joined: Mon Feb 07, 2005 7:18 am

RE: FCKLang is undefined on first load

Postby mansur22 » Tue Feb 22, 2005 10:39 am

Hi,

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
mansur22
 
Posts: 3
Joined: Mon Feb 21, 2005 2:58 am

RE: FCKLang is undefined on first load

Postby mansur22 » Tue Feb 22, 2005 11:33 am

I have to add on the following:

I declare the Defaultlanguage as following in the CodeBehind:

FCKeditor1.Config[ "AutoDetectLanguage" ] = "false" ;
FCKeditor1.Config["DefaultLanguage"] = "de";
mansur22
 
Posts: 3
Joined: Mon Feb 21, 2005 2:58 am


Return to FCKeditor 2.x

Who is online

Users browsing this forum: No registered users and 2 guests