I would suggest using django-ckeditor project, it's really easy to use and actively maintained. It is primarily meant to be used with Django admin, but it can also be used outside of the admin, in your custom templates.
One thing I found very powerful (and I believe not actually documented in django-ckeditor
) is that you can directly use any of the "original" CKEditor's configuration settings within the CKEDITOR_CONFIGS
dictionary in your settings.py
.
E.g. if you wanted to set up code highlighting, and you've found CKEditor's option to change the highlighter theme is:
config.codeSnippet_theme = 'school_book';
you would add it directly to the CKEDITOR_CONFIGS
dictionary:
CKEDITOR_CONFIGS = {
'your_config_name': {
...
'codeSnippet_theme': 'school_book',
'extraPlugins': ','.join(
[
'codesnippet',
...
]
)
},
}