I have 3 tinymce textarea, in my page. And I want to populate these text areas from ajax.
I know the name of the original textarea
field, but
tinyMCE.activeEditor.setContent(value);
does not work, since I dont have any active editor.
Here is a basic example of my code
.
.
.
function(data) {
$.each(data, function(key,value)) {
$("#"+key).val(value); //"#"+key is the id of tinymce editors in my form
},
"json"
.
.
.
.