Today I got problem to load TinyMCE as dynamic loaded textareas by Ajax?
Solution:
<a href=”javascript:void(0)” onclick=”ajaxEdit(); showEditor();”>Edit Content</a>
here ajaxEdit() is ajax function where textarea loaded by ajax as html response.
here we have use showEditor(); to load TinyMCE editor … page loaded by Ajax
<script>
function showEditor()
{
setTimeout(“initEditor(‘newsdesc’)”,4000);
}
tinyMCE.init({………………………
…………………………………………………});
function initEditor(id)
{
tinyMCE.execCommand(‘mceAddControl’, false, id);
}
</script>