Hi all

Is it somehow possible to set a different config, when e.g. the Locale of the 
current Magnolia site is "iw_IL"?

I want to set these options when the AggregationState returns "iw_IL" as the 
currently active Locale:
[code]
    FCKConfig.AutoDetectLanguage = false;
    FCKConfig.DefaultLanguage = "he";
    FCKConfig.ContentLangDirection      = "rtl";
[/code]

I tried accessing the dom tree in the config file like this:
[code]
if(document.documentElement.getAttribute("lang").substr(0,2) == "iw") {
    FCKConfig.AutoDetectLanguage = false;
    FCKConfig.DefaultLanguage = "he";
    FCKConfig.ContentLangDirection      = "rtl";
}
[/code]

or setting the config afterwards in the init file like this:
[code]
var langValue = document.documentElement.getAttribute("lang");
if(langValue != null && langValue.substr(0,2) == "iw") {
    alert("success")
    fckInstance.Config['FCKConfig.AutoDetectLanguage'] = false;
    fckInstance.Config['FCKConfig.DefaultLanguage'] = 'he';
    fckInstance.Config['FCKConfig.ContentLangDirection'] = 'rtl';
}
[/code]
but none of these ways seem to work out.

Do you have suggestions?

Maybe I can use this function:
[code]
function FCKeditor_OnComplete( editorInstance )
{
    alert( editorInstance.Name ) ;
}
[/code]

but i need to put the code inside of the fckeditor.html which is in the 
fckeditor module jar, how can i overwrite this file?

Thx in advance, Chris.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=e583a6c2-391e-401d-8d55-dff3a8c46c66


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to