Documentation

Toolbar

sticky

Type: Boolean

Default: true

By default, when scrolling the page, the toolbar becomes sticky at the top of the browser window. This can be disabled like this:

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

stickyTopOffset

Type: Number

Default: 0

If you already have a sticky navigation on the page or another layer bound to the scroll, then you can change the position of the editor toolbar using this setting. The setting value is specified in pixels.

RedactorX('#entry', {
    toolbar: {
        stickyTopOffset: 40
    }
});

stickyMinHeight

Type: Number

Default: 200

This setting allows you to specify the minimum height of the editor at which the sticky toolbar is activated.

RedactorX('#entry', {
    toolbar: {
        stickyMinHeight: 300 // pixels
    }
});

hide

Type: Array

Default: false

This setting helps to hide the specified buttons on the toolbar.

RedactorX('#entry', {
    toolbar: {
        hide: ['italic', 'deleted']
    }
});

disable

You can turn off the toolbar completely, just set false.

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