Dropdown

dropdown.format#

Type: string[]

Default: ['text', 'h1', 'h2', 'h3', 'h4', 'quote', 'bulletlist', 'numberedlist', 'todo']

Items in the block format dropdown (format button). Built-in entries use format.set with block types.

Also available but not in the default list: h5, h6, address.

const app = Redactor('#entry', {
  dropdown: {
    format: ['text', 'h1', 'h2', 'h3', 'quote', 'bulletlist']
  }
});

dropdown.inline#

Type: string[]

Default: ['code', 'underline', 'sup', 'sub', 'highlight', 'removeinline']

Items in the “more inline formatting” dropdown (moreinline button).

const app = Redactor('#entry', {
  dropdown: {
    inline: ['code', 'underline', 'sup', 'sub', 'highlight', 'kbd', 'removeinline']
  }
});

dropdown.control#

Type: string[]

Default: ['add', 'format', 'move-up', 'move-down', 'duplicate', 'trash']

Items in the control bar dropdown.

const app = Redactor('#entry', {
  dropdown: {
    control: ['add', 'format', 'trash']
  }
});

dropdown.addbar#

Type: string[]

Default: ['text', 'heading', 'image', 'todo', 'list', 'embed', 'table', 'quote', 'pre', 'line', 'layout', 'wrapper']

Items in the addbar (“+”) dropdown. Also available: address, dlist.

const app = Redactor('#entry', {
  dropdown: {
    addbar: ['text', 'heading', 'list']
  }
});

dropdown.list#

Type: string[]

Default: ['bulletlist', 'numberedlist', 'todo']

Items in the list-type dropdown when the cursor is not inside a list block.

const app = Redactor('#entry', {
  dropdown: {
    list: ['bulletlist', 'todo']
  }
});

dropdown.haslist#

Type: string[]

Default: ['bulletlist', 'numberedlist', 'todo', 'indent', 'outdent']

Items in the list dropdown when the cursor is inside a list. Replaces the dropdown.list set in that context.

const app = Redactor('#entry', {
  dropdown: {
    haslist: ['bulletlist', 'numberedlist', 'indent', 'outdent']
  }
});