Editing the raw HTML inside a TinyMCE control
Simply add the code
button to one of the toolbars, e.g. with this configuration for django-tinymce:
TINYMCE_DEFAULT_CONFIG = {
# your other configuration
'theme_advanced_buttons3_add': 'code',
}
Here's a list of buttons that are available with the advanced
TinyMCE theme