Table

table.template#

Type: string

Default: '<table><tr><td></td><td></td></tr><tr><td></td><td></td></tr></table>'

HTML template for new tables.

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

table.nowrap#

Type: string

Default: 'nowrap'

CSS class added to a table column when Nowrap is enabled in cell settings. Redactor also adds rx-nowrap (editor-only).

const app = Redactor('#entry', {
  table: {
    nowrap: 'text-nowrap'
  }
});