I had a cftextarea with richtext enabled and I had another dropdown which was supposed to change the value of the cftextarea when selected. So, I was doing it the old way as I would have imagined.

var msgbox = document.getElementById("mytextarea");
msgbox.innerHTML = 'New Value';

But that was not working. And after spending some time trying to get this done, I finally struck the solution :-

var msgbox = document.forms['myForm'].mytextarea.id;
ColdFusion.RichText.setValue(msgbox, 'New Value');

The trick here is that the id of the cftextarea is dynamically generated by CF during run-time, so you need to get the element by the name and then get it’s id. And then use ColdFusion.RichText.setValue() function from cfrichtexteditor.js .

I hope this little tip helps someone out there.