Documentation

Buttons

Redactor X 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:

['text', 'image', 'embed', 'table', 'quote', 'pre', 'line']

Here's how to change them:

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

context #

By default has a set of buttons:

['bold', 'italic', 'deleted', 'code', 'link']
// additional buttons: mark, sub, sup, kbd

Here's how to change them:

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

topbar #

By default has a set of buttons:

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

Here's how to change them:

RedactorX('#entry', {
    buttons: {
        topbar: ['undo', 'redo', 'shortcut']
    }
});