cannot convert dynamically loaded textarea to tinyMCE editor

I have a jQuery modal dialog, which is loaded by AJAX call. There is one textarea, however I cannot convert it to tinyMCE editor.

tried

tinyMCE.execCommand('mceAddControl', false, 'Text')

 $('textarea').tinymce(...)

all works great if textarea is created from normal call. (I suspect there is something about DOM)

Answer

plz call

$('textarea').tinymce(...)

after you add textarea to the DOM hierarchy

Leave a Reply

Your email address will not be published. Required fields are marked *