Have field textarea id="tr"
using HTML editor Redactor last version
trying to set value of the field exactly haw it is described in API Doc :
$('#tr').redactor('insertText', 'text');
or
$('#tr').redactor('insertHtml', 'text');
What am I doing wrong ?
Try the set API, which I think is a lower-level version of
insertText
/insertHtml
.So in your example, it should be:
Update: In redactor version 10 (and greater), the name of the set method was changed, as documented here: