Can't edit dhtmlxeditor in a dhtmlxwindow

Hello,



I have a grid populate with a connector. To edit a record, i open a window where the record detail is loaded (php file).

In this windows appear a dhtmltabbar with some input fields and in the last tab a dhtmlxeditor. All works fine except that i can’t access the editor to insert or modify text.



Can you help me ?



this code open the widows



function edit_actualite(ajoute){

if (grille.getSelectedRowId()!=null || ajoute==true){

var url=“Fiche.php”;

var winedit = parent.wins.createWindow(“win2”,0,0,600,400);

winedit.center();

winedit.setModal(true);

winedit.button(“park”).hide();

winedit.button(“minmax1”).hide();

winedit.button(“minmax2”).hide();

winedit.denyResize();

winedit.setText(“Fiche actualit�”);

if (ajoute==false){

url=“Fiche.php?Actu=”+grille.getSelectedRowId();

}

winedit.attachURL(url);}

else

alert(“S�lectionner d’abord un enregistrement”);

}



and this code is the file Fiche.php





















<?php

    include (‘class.eyemysqladap.inc.php’);

    $db = new EyeMySQLAdap(‘localhost’, ‘root’, ‘’, ‘cosic’);



    if (isset($_GET[‘Actu’])){

    $actu=$db->selectOne("*", “news”, “IdNews=’”.$_GET[‘Actu’]."’");

    $actif = stripslashes($actu[‘Actif’]);

    $titre = stripslashes($actu[‘Titre’]);

$texte = stripslashes($actu[‘Texte’]);

    $date = stripslashes($actu[‘Date’]);

    $datedebut = stripslashes($actu[‘Datedebut’]);

    $datefin = stripslashes($actu[‘Datefin’]);

    $idauteur = stripslashes($actu[‘IdAuteur’]);

$idnews = stripslashes($actu[‘IdNews’]);

    }

else{

    $titre = ‘’;

$texte = ‘’;

    $date = date(“Y-m-d”);

    $datedebut = date(“Y-m-d”);;

    $datefin = date(“Y-m-d”);;

    $idauteur = 0;

$idnews = 0;

    }

?>









Titre :





Date :

<input type=“text” size=“15” readonly id=“p_date” value="<?php echo date("d/m/Y", strtotime($date));?>" />







Page d’accueil :

<input id=“p_actif” type=“checkbox” value=“Oui” <?php if ($actif=='Oui') echo 'Checked';php?>>



<?php

$aut=$db->selectOne("", “utilisateurs”,“IdUtilisateur=’”.$idauteur."’");

if ($aut[‘Mute’]==‘Oui’)

{

$auts=$db->select("
", “utilisateurs”);

}

else

{

$auts=$db->select("*", “utilisateurs”,“Mute!=‘Oui’”);

}

?>

Auteur :

<select size=“1” style=“width:65%” id=“p_idauteur” <?php if ($aut['Mute']=='Oui') echo 'disabled';?>>

<?php

            foreach($auts as $rec=>$valeur)

            {

            ?>

<option value="<?php echo $valeur[IdUtilisateur];?>" <?php if ($idauteur==$valeur[IdUtilisateur]) {echo ' selected';}?>><?php echo $valeur[Nom].' '.$valeur[Prenom];?>

<?php }

             ?>







D�but :

<input type=“text” class=“inputWithImage1” id=“p_datedebut” value="<?php echo date("d/m/Y", strtotime($datedebut)); ?>" />



Fin :

<input type=“text” class=“inputWithImage2” id=“p_datefin” value="<?php echo date("d/m/Y", strtotime($datefin));?>" />



















Unfortunately the issue can’t be reconstructed locally.
Please try to add the next line to the tabbar’s init
          tabbar.enableForceHiding(true);

It doesn’t work
But you’re right, the problem appears only if the editor is binding with the tab.
If the editor is elsewhere in the page, i can write text.

In fact, when the editor is in the tabbar, i can click buttons in the toolbar but the text is not accessible.
I replace dhtmlxeditor by Tinymce editor and the behaviour is the same, but a simple textarea works.

It seems that the dhtmxtabbar prevents the editor area from being accessible.

Do you have an idea ?

Thanks for your answer.

Phil

Me again,

Just for your information,

When i open the file Fiche.php directly in the browser, the dhtmlxeditor in the third tab is fully accessible.