So far I had a simple textarea, it looked like this:
<textarea id="mailtemplate4" rows="20" cols="139" name="templatearea4"></textarea>
I am adding the content for this textarea later using Ajax. Now I want to replace this textarea with the tinyMCE Editor. So I added the tiny_mce.js file to my web app and also called the init of tinymce, like this:
tinyMCE.init({
mode : "textareas",
theme : "simple"
});
This replaces my old textarea with the simple tinymce editor, but I cant enter any text and the content is not filled with Ajax. Looking at the source of the page I see that it added some code below my old area, it starts like this:
<span id="mailtemplate4_container" class="mceEditor defaultSimpleSkin">...
I guess thats correct, so what is the problem? Why is the content not filled and why cant I enter any text? The code throws no JavaScript errors.
Thanks!