--- layout: v0.20 permalink: /0.20/docs/configuration/ title: Configuration - Quill v0.20 ---
Quill allows several ways to customize it to suit your needs. This section is dedicated to tweaking existing functionality. See the Modules section for adding new functionality and the Themes section for styling.
Quill requires an container where the editor will be appended. You can either pass in a CSS selector or a DOM object.
var editor = new Quill('.editor'); // The first result of the selector will be used
var container = document.getElementById('editor');
var editor = new Quill(container);
var container = $('.editor').get(0);
var editor = new Quill(container);
To configure Quill, pass in an options object:
var configs = {
readOnly: true,
theme: 'snow'
};
var editor = new Quill('#editor', configs);
The following keys are recognized:
Default: 100
Number of milliseconds between checking for local changes in the editor. Note that certain actions or API calls may prompt immediate checking.
Default: false
Whether to instantiate the editor to read-only mode.
Default: {}
Object containing CSS rules to add to the Quill editor. Passing in
false (not merely a falsy
value) will prevent Quill from inserting any default styles. In this
latter case it is assumed either the base stylesheet (quill.base.css) or a theme stylesheet is
included manually.
Example
var editor = new Quill('#editor', {
styles: {
'.ql-editor': {
'font-family': "'Arial', san-serif"
},
'.ql-editor a': {
'text-decoration': 'none'
}
}
});