plugins/template/trumbowyg.template.js
function templateSelector(trumbowyg) {
        var available = trumbowyg.o.plugins.templates;
        var templates = [];

        $.each(available, function (index, template) {
            trumbowyg.addBtnDef('template_' + index, {
                fn: function () {
                    trumbowyg.html(template.html);
                },
                hasIcon: false,
                title: template.name
            });
            templates.push('template_' + index);
        });

        return templates;
    }
function templateSelector(trumbowyg) {
        var available = trumbowyg.o.plugins.templates;
        var templates = [];

        $.each(available, function (index, template) {
            trumbowyg.addBtnDef('template_' + index, {
                fn: function () {
                    trumbowyg.html(template.html);
                },
                hasIcon: false,
                title: template.name
            });
            templates.push('template_' + index);
        });

        return templates;
    }
function templateSelector ( trumbowyg ) { var available = trumbowyg . o . plugins . templates ; var templates = [ ] ; $ . each ( available , function ( index , template ) { trumbowyg . addBtnDef ( 'template_' + index , { fn : function ( ) { trumbowyg . html ( template . html ) ; } , hasIcon : false , title : template . name } ) ; templates . push ( 'template_' + index ) ; } ) ; return templates ; }
Creates the template-selector dropdown.
Creates the template - selector dropdown .