Hello to all
I have to do a website with 4 languages (FR,UK,SP,DE).
I can easily put 4 editors on the same page but i do not like this as is so heavy ! (and not beautiful --> i m a woman so you understand). Is there a possibilty to have one text editor with 4 tabs or something like that.
Thanks in advance to all
Best regards
Sophie
I have to do a website with 4 languages (FR,UK,SP,DE).
I can easily put 4 editors on the same page but i do not like this as is so heavy ! (and not beautiful --> i m a woman so you understand). Is there a possibilty to have one text editor with 4 tabs or something like that.
Thanks in advance to all
Best regards
Sophie

Re: multiples languages / multiples editors
Last update : 16 /01/2008
I fond a solution based on hidden div
I first create my four instances.
<div name="lang_fr" id="lang_fr" style="display:inline"> <?php $oFCKeditor1 = new FCKeditor('fr_language') ; $oFCKeditor1->BasePath = '../fckeditor/'; $oFCKeditor1->Value = ''; $oFCKeditor1->Height = "200" ; $oFCKeditor1->Create() ; ?> </div> <div name="lang_sp" id="lang_sp" style="display:inline"> <?php $oFCKeditor1 = new FCKeditor('sp_language') ; $oFCKeditor1->BasePath = '../fckeditor/'; $oFCKeditor1->Value = ''; $oFCKeditor1->Height = "200" ; $oFCKeditor1->Create() ; ?> </div> ...after that I had on my html pages href regarding each languages and calling a javascript function
javascript function
function changediv(data){ //alert ("ici"); if (data == 1) { document.getElementById('expl_fr').style.display='inline'; document.getElementById('expl_uk').style.display='none'; document.getElementById('expl_sp').style.display='none'; document.getElementById('expl_de').style.display='none'; var editor = FCKeditorAPI.GetInstance('lang_fr'); editor.EditorDocument.designMode = "on"; } if (data == 2) { document.getElementById('expl_fr').style.display='none'; document.getElementById('expl_uk').style.display='inline'; document.getElementById('expl_sp').style.display='none'; document.getElementById('expl_de').style.display='none'; var editor = FCKeditorAPI.GetInstance('lang_fr'); editor.EditorDocument.designMode = "on"; } ... }Of course it s not cross browser as I do have issues with IE7, but i m still working on it, will come back with last update
regards all
Sophie
Re: multiples languages / multiples editors