Documentation

Addbar

addbar

Type: Boolean

Default: true

This setting turn off the addbar and its button on the toolbar, for this, set the setting to false.

RedactorX('#entry', {
    addbar: false
});

addbar.add

Type: Array

This setting allows you to add additional buttons to the addbar.

RedactorX('#entry', {
    addbar: {
        add: {
            "note": {
                title: 'Note',
                position: { after: 'text' },
                icon: '<svg...>',
                template: '<p class="note">Type something...</p>'
            }
        }
    }
});

addbar.hide

Type: Array

This setting allows you to hide buttons from the addbar.

RedactorX('#entry', {
    addbar: {
        hide: ['pre', 'embed']
    }
});