I've been looking into it and my guess is something like execCommand('insertHTML', 0, 'HTML here'). However how do I link it to the textarea and pass the values. Additionally the text editor overlays an iframe on top of the textarea tag so I'm not sure about how I can solve this problem.
Please help. Thanks!