Here's an example of hiding a button in the toolbar in three different ways.
<!-- element -->
<textarea id="entry">...</textarea>
<!-- call -->
<script>
Redactor.add('plugin', 'myplugin', {
start() {
// 1) remove from a plugin
this.app.toolbar.remove('list');
}
});
let app = Redactor('#entry', {
plugins: ['myplugin'],
// 2) hide with setting
toolbar: {
hide: ['deleted']
},
// 3) change toolbar layout
buttons: {
toolbar: ['add', 'html', 'format', 'bold', 'italic', 'link', 'image']
}
});
</script>