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