Hi there
Okay I think you will laugh (or you even SHOULD) laugh, but seems just like I'm too stupid - following situation:
I'm using the newewst version of CKEditor and include it llike that:
<script type="text/javascript" src="js/ckeditor/ckeditor.js"></script>
My text area on the page is like this:
<textarea class="ckeditor"></textarea>
Everything works perfectly (also changed Basic toolbar a little).
My problem: The page is in 3 languages, german, france and italian. The language comes in cookies now I just need to change the language of the editor - HOW???? I think I tried everything!
Lets say I have the $_SESSION['lang'] from my cookie and in it is already the correct language code, like de, it or fr - How do I change the language of the editor now?
Thanks...
Okay I think you will laugh (or you even SHOULD) laugh, but seems just like I'm too stupid - following situation:
I'm using the newewst version of CKEditor and include it llike that:
<script type="text/javascript" src="js/ckeditor/ckeditor.js"></script>
My text area on the page is like this:
<textarea class="ckeditor"></textarea>
Everything works perfectly (also changed Basic toolbar a little).
My problem: The page is in 3 languages, german, france and italian. The language comes in cookies now I just need to change the language of the editor - HOW???? I think I tried everything!
Lets say I have the $_SESSION['lang'] from my cookie and in it is already the correct language code, like de, it or fr - How do I change the language of the editor now?
Thanks...
Re: Simple Language Changes - I'm too stuid
Re: Simple Language Changes - I'm too stuid
<textarea id="korrektur"></textarea>
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace( 'Korrektur',
{
language : '<?php echo $_SESSION['lang']; ?>',
on :
{
instanceReady : function()
{
// Wait for the editor to be ready to set
// the language combo.
var languages = '<?php echo $_SESSION['lang']; ?>';
languages.value = this.langCode;
languages.disabled = false;
}
}
} );
//]]>
</script>
It DOES something, but somethign goes wrong there, In firefox there is suddenly an "textarea" in the ckeditor-textarea and IE messes completely up...
Is something wrong there? I checked also my code if I forgot to close <textarea> or somethign, but it seems all fine.
------------
EDIT:
I knew it -I'm just a stupid idiot - I had on the <td>, in which is the <textrea> in, the very same ID as on the textarea - great job!!! wall <-- head.
Anyway it works perfectly now.
Thanks.