2009-05-12 3 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); 
}