plugins/mention/trumbowyg.mention.js
function buildDropdown(items, trumbowyg) {
        var dropdown = [];

        $.each(items, function (i, item) {
            var btn = 'mention-' + i,
                btnDef = {
                    hasIcon: false,
                    text: trumbowyg.o.plugins.mention.formatDropdownItem(item),
                    fn: function () {
                        trumbowyg.execCmd('insertHTML', trumbowyg.o.plugins.mention.formatResult(item));

                        return true;
                    }
                };

            trumbowyg.addBtnDef(btn, btnDef);
            dropdown.push(btn);
        });

        return dropdown;
    }
function buildDropdown(items, trumbowyg) {
        var dropdown = [];

        $.each(items, function (i, item) {
            var btn = 'mention-' + i,
                btnDef = {
                    hasIcon: false,
                    text: trumbowyg.o.plugins.mention.formatDropdownItem(item),
                    fn: function () {
                        trumbowyg.execCmd('insertHTML', trumbowyg.o.plugins.mention.formatResult(item));

                        return true;
                    }
                };

            trumbowyg.addBtnDef(btn, btnDef);
            dropdown.push(btn);
        });

        return dropdown;
    }
function buildDropdown ( items , trumbowyg ) { var dropdown = [ ] ; $ . each ( items , function ( i , item ) { var btn = 'mention-' + i , btnDef = { hasIcon : false , text : trumbowyg . o . plugins . mention . formatDropdownItem ( item ) , fn : function ( ) { trumbowyg . execCmd ( 'insertHTML' , trumbowyg . o . plugins . mention . formatResult ( item ) ) ; return true ; } } ; trumbowyg . addBtnDef ( btn , btnDef ) ; dropdown . push ( btn ) ; } ) ; return dropdown ; }
Build dropdown list

@param {Array}   items      Items
@param {object}  trumbowyg  Editor

@return {Array}
Build dropdown list