Redactor / Documentation / Settings

Buttons

buttons #

By default set to:

['format', 'bold', 'italic', 'deleted', 'lists', 
'image', 'file', 'link', 'horizontalrule']
// + 'underline'

Sets an array of buttons that will be displayed in the toolbar.

Can be customized like this:

$('#redactor').redactor({
    buttons: ['format', 'bold', 'italic', 'deleted']
});

buttonsHide #

This setting allows to hide certain buttons on launch.

$('#redactor').redactor({
    buttonsHide: ['image', 'link']
});

buttonsHideOnMobile #

This setting allows to hide certain buttons on mobile devices:

$('#redactor').redactor({
    buttonsHideOnMobile: ['image', 'video']
});

In this example, video and image buttons will be hidden on smartphones, but still visible on desktops, laptops and tablets.

buttonsTextLabeled #

This setting makes all buttons is text labeled.

$('#redactor').redactor({
    buttonsTextLabeled: true
});