@ -38,8 +38,11 @@ module.exports = Backbone.View.extend({
},
render() {
var config = this.editor.getConfig();
this.el.className += ' ' + config.stylePrefix + 'toolbar-item';
const { editor, $el, model } = this;
const label = model.get('label');
const pfx = editor.getConfig('stylePrefix');
$el.addClass(`${pfx}toolbar-item`);
label && $el.append(label);
return this;
}
});