Documentation / Settings

Buttons

Redactor has a number of preset buttons for different toolbars. You can change sets of buttons and expand them with this setting.

addbar #

By default has a set of buttons:


['ai-tools', 'ai-image', 'text', 'heading', 'image', 'todo', 'list', 'embed', 'table', 'quote', 'pre', 'line', 'layout', 'wrapper']

Here's how to change them:

Redactor('#entry', {
    popups: {
        addbar: ['text', 'image', 'table']
    }
});

context #

By default has a set of buttons:

['ai-tools', 'format', 'bold', 'italic', 'deleted', 'moreinline', 'link']
// additional buttons: mark, sub, sup, kbd

Here's how to change them:

Redactor('#entry', {
    context: true,
    buttons: {
        context: ['bold', 'italic', 'mark', 'link']
    }
});

extrabar #

By default has a set of buttons:


['hotkeys'] // additional buttons: undo, redo

Here's how to change them:

Redactor('#entry', {
    buttons: {
        extrabar: ['undo', 'redo', 'hotkeys']
    }
});