Documentation / Settings

Tab

key #

Type: Boolean

Default: true

The tab key in the editor moves the cursor between editable blocks, between table cells and indents lists.

The behavior of the tab key can be completely disabled. To do this, set false.

Redactor('#entry', {
    tab: {
        key: false
    }
});

spaces #

Type: Boolean, Number

Default: false

The tab key can place a certain number of spaces in the text, to do this, specify the settings parameter spaces.

Redactor('#entry', {
    tab: {
        spaces: 4
    }
});

In this case, the tab key will work as usual, but if the cursor is not at the beginning and not at the end of the editable block, then when pressed, it will add the specified number of spaces to the text.