I used a very simple solution to workaround this problem:
Add to your htmlarea.js the following prototype:
// set the HMML
HTMLArea.prototype.setHTML = function() {
this._textArea.value = text;
};
Now, insert the text on the fly:
editor.setHTML('This is the new value');
The editor will be updated with the text.
Eric
2dev