You can customize the Quill editor's appearance and functionality (such as themes, syntax highlighting, and toolbar buttons) by adding a QUILL_CONFIGS dictionary to your Django settings.py file.
Use the key 'default' within QUILL_CONFIGS to define the configuration applied to your editors. The structure follows the Quill.js module configuration pattern, where theme defines the visual style and modules allows you to configure specific features like syntax or the toolbar layout.
For a complete list of available toolbar options and module settings, refer to the official Quill.js documentation.
QUILL_CONFIGS = {
'default':{
'theme': 'snow',
'modules': {
'syntax': True,
'toolbar': [
[
{'font': []},
{'header': []},
{'align': []},
'bold', 'italic', 'underline', 'strike', 'blockquote',
{'color': []},
{'background': []},
],
['code-block', 'link'],
['clean'],
]
}
}
}