--- layout: v0.20 permalink: /0.20/docs/modules/ title: Modules - Quill v0.20 ---
This interface has not been finalized.

# Modules

Modules allow Quill’s behavior and functionality to customized. To enable a module, simply add it to the editor at initialization:

    var editor = new Quill('#editor', {
      modules: { toolbar: options }
    });

Or you can add it later:

    editor.addModule('toolbar', options);

A few common and officially supported modules are listed here:

- Toolbar
- Authorship
- Multiple Cursors

## Custom Modules

You can also build your own module. Simply register it with Quill.registerModule and the module will be passed the corresponding Quill editor and options. Check out the Building a Custom Module guide for a walkthrough.

    Quill.registerModule('armorer', function(quill, options) {
      switch(options.hero) {
        case 'aragorn':
          console.log('anduril');
          break;
        case 'bilbo':
        case 'frodo':
          console.log('sting');
          break;
        case 'eomer':
          console.log('guthwine');
          break;
        case 'gandalf':
          console.log('glamdring');
          break;
        default:
          console.log('stick');
      }
    });

    var quill = new Quill('#editor');
    quill.addModule('armorer', {
      hero: 'sam'
    });