How to add option in reply button

NodeBB Plugins
  • I need add option in this button
    0_1497292152415_Screen Shot 2017-06-12 at 2.56.53 PM.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
    	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('').one('', function(ev, data) {
    			callToggleQuestion(, false);

    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

Suggested Topics