I need add option in this button
[image: cY2sewF.png]
I found this code for add that but in the composer when adding a post.
$(window).on('action:composer.loaded', function(err, data) {
if (data.hasOwnProperty('composerData') && !data.composerData.isMain) {
// Do nothing, as this is a reply, not a new post
return;
}
var item_reply = $('<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button><ul class="dropdown-menu pull-right" role="menu"><li><a href="#" data-switch-action="post"><i class="fa fa-fw fa-book"></i> Responder historia</a></li></ul>');
var actionBar = $('#cmp-uuid-' + data.post_uuid + ' .action-bar');
item_reply.on('click', 'li', function() {
$(window).off('action:composer.topics.post').one('action:composer.topics.post', function(ev, data) {
callToggleQuestion(data.data.tid, false);
});
});
actionBar.append(item_reply);
});
Maybe this working if changue .action-bar for ?, really, the documentation for plugin development is very bad
Thanks for you time, and sorry for my bad english