Line 2710 (roughly):
// New
$.each(this.opts.buttons, function(i,key)
{
if ($.isArray(key))
{
$.each(key, function(j, child) {
addToolbarButton($toolbar, child);
});
}
else
{
addToolbarButton($toolbar, key);
}
});
// Old
/*
$.each(this.opts.buttons, function(i,key)
{
if ($.isArray(key))
{
var $list = $('<ul />');
$.each(key, function(j, child) {
addToolbarButton($list, child);
});
$toolbar.append($('<li class="redactor_btn_group" />').append($list));
}
else
{
addToolbarButton($toolbar, key);
}
});
*/
.redactor_btn_container_fontfamily{display: none}
getButtonConfig: function()
{
var self = this,
buttons = [ ['switchmode'], ['removeformat']],
bC = this.options.buttonConfig,
group;
if (!bC || bC.basic)
{
buttons.push(['bold', 'italic', 'underline'/*, 'deleted'*/]);
}
/*if (!bC || bC.extended)
{
buttons.push(['fontcolor', 'fontsize', 'fontfamily']);
}*/
if (!bC || bC.link)
{
buttons.push(['createlink', 'unlink']);
}
/*if (!bC || bC.align)
{
buttons.push(['alignment']);
}*/
if (!bC || bC.list)
{
buttons.push(['unorderedlist', 'orderedlist'/*, 'outdent', 'indent'*/]);
}
else if (bC.indent)
{
buttons.push(['outdent', 'indent']);
}
getButtonConfig: function()
{
var self = this,
buttons = [ ['switchmode'], ['removeformat']],
bC = this.options.buttonConfig,
group;
if (!bC || bC.basic)
{
buttons.push(['bold', 'italic', 'underline'/*, 'deleted'*/]);
}
/*if (!bC || bC.extended)
{
buttons.push(['fontcolor', 'fontsize', 'fontfamily']);
}*/
if (!bC || bC.link)
{
buttons.push(['createlink', 'unlink']);
}
/*if (!bC || bC.align)
{
buttons.push(['alignment']);
}*/
if (!bC || bC.list)
{
buttons.push(['unorderedlist', 'orderedlist'/*, 'outdent', 'indent'*/]);
}
else if (bC.indent)
{
buttons.push(['outdent', 'indent']);
}