Paste text into xenforo editor using redactor api

With the document.ready event, I want to add the line = 'bla bla bla' to the editor of editors in xenforo I'm trying

$('#ctrl_message_html').redactor('set', 'Your text goes here');
$('#ctrl_message_html').redactor('inserttext', 'Your text goes here');

but this has no effect ... pls guide me how to paste it using xenfor redactor editor thank you very much!

+3
source share

All Articles