Documentation / Settings

Table

template #

Type: String

Default: string

The default table template is:

<table>
    <tr>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td></td>
        <td></td>
    </tr>
</table>

With this setting, you can change the template of the table block, for example:

Redactor('#entry', {
    table: {
        template: '<table class="my-table"><tr><td></td></tr></table>'
    }
});

disable #

You can completely disable the table adding, just set false.

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