2009-05-12 10 views

答えて

1

私にあなたのコードを見せたら、私はあなたを助けることができるかもしれません。ただし、この関数を呼び出して、Ajaxで生成されたTextAreaのIDを渡すことができるはずです。

//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); 
} 
関連する問題