2009-05-12 3 views

Répondre

1

Si vous me montrez votre code, je pourrais être en mesure de vous aider à mieux. Cependant, vous devriez pouvoir appeler cette fonction et lui passer l'identifiant de TextArea généré par Ajax.

//add this to your Ajax callback that generates the TextArea 
//replace with the Id of the new textarea 
var myTextArea = document.getElementById("MyNewTextArea"); 
generateTinyMCE(myTextArea); 

//Add this function to your script tag 
function generateTinyMCE(id) { 
if (!tinyMCE.get(id)) 
    tinyMCE.execCommand('mceAddControl', false, id); 
else 
    tinyMCE.execCommand('mceRemoveControl', false, id); 
} 
Questions connexes