Try installing the API , which I think is a lower level insertText / insertHtml .
So in your example, this should be:
$('#tr').redactor('set', 'Your text goes here');
Update . In version 10 (and later) editor, the name of the dialing method has been changed as described here :
$('#tr').redactor('code.set', 'Your text goes here');
source share