ok i found a solution..
[code]
var url = document.location.href;
var languageStartIndex = url.indexOf('mgnlPath=') + 13;
var languageEndIndex = languageStartIndex + 2;
var language = url.substring(languageStartIndex, languageEndIndex);
if(language == 'he') {
    fckInstance.Config['DefaultLanguage'] = 'he';
    fckInstance.Config['ContentLangDirection'] = 'rtl';
}
if(language == 'ar') {
    fckInstance.Config['DefaultLanguage'] = 'ar';
    fckInstance.Config['ContentLangDirection'] = 'rtl';
}
[/code]

a better solution would be to create a plugin which renders a toolbar button 
where you can toggle the editor language direction. but i really dont know how 
to do this and the fckeditor 2.x documentation is as good as non-existant.

cheers

-- 
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