Table of Contents
![]() |
|
|
This section describes how to install the tinymce application in your Django project.
The tinymce application requires Django version 1.0 or higher. You will also need TinyMCE version 3.0 or higher and optionally a language pack for your projects languages. If you want to use the spellchecker plugin using the supplied view (no PHP needed) you must install the PyEnchant package and dictionaries for your project languages.
settings.py:
INSTALLED_APPS = (
...
'tinymce',
...
)
urls.py:
urlpatterns = patterns('',
...
(r'^tinymce/', include('tinymce.urls')),
...
)
The application can be configured by editing the project’s settings.py file.
Example:
TINYMCE_JS_URL = 'http://debug.example.org/tiny_mce/tiny_mce_src.js'
TINYMCE_DEFAULT_CONFIG = {
'plugins': "table,spellchecker,paste,searchreplace",
'theme': "advanced",
}
TINYMCE_SPELLCHECKER = True
TINYMCE_COMPRESSOR = True