Core triggers 2 events when a new reply or quote is happening
$(window).trigger('action:composer.post.new', {
tid: tid,
pid: getData(button, 'data-pid'),
topicName: topicName,
text: username ? username + ' ' : ''
});
and
$(window).trigger('action:composer.addQuote', {
tid: tid,
slug: ajaxify.data.slug,
index: getData(button, 'data-index'),
pid: getData(button, 'data-pid'),
topicName: topicName,
username: username,
text: selectionText
});
the redactor plugin needs to listen to these with window.on
, the events pass the quoted text in the field text
.
Then you need to insert the text
into the text area of redactor as a quote maybe in a <blockquote>
Check out how composer-default does it here