I have 2 textarea in a webpage which use tinyMCE.
<textarea id="id1" rows="10" cols="50" name="name1"></textarea>
<textarea id="id2" rows="10" cols="50" name="name2"></textarea>
On version 3 of TinyMCE, I was able to do this
$('#id1').tinymce().execCommand('mceInsertContent', false, "content");
Now on version 4, I try to use the same code, but it didn't work. So, how can I insert content into the specific targeted textarea?