Skip to content

Commit

Permalink
Merge pull request jazzband#346 from claudep/config_docs
Browse files Browse the repository at this point in the history
Fixes jazzband#345 - Fixed default TINYMCE_DEFAULT_CONFIG in docs
  • Loading branch information
Natim authored Mar 8, 2021
2 parents 994a7c4 + 1ef8cf1 commit b73c832
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,28 @@ file.

TINYMCE_JS_ROOT = os.path.join(STATIC_ROOT, "path/to/tiny_mce")

``TINYMCE_DEFAULT_CONFIG`` (default: ``{'theme': "simple", 'relative_urls': False}``)
``TINYMCE_DEFAULT_CONFIG``
The default TinyMCE configuration to use. See `the TinyMCE manual`_ for all
options. To set the configuration for a specific TinyMCE editor, see the
``mce_attrs`` parameter for the :ref:`widget <widget>`.
!Important: The ``language`` attribute should only be set to force TinyMCE to
have a different language than Django's current active language.

If not set, the default value of this setting is::

{
"theme": "silver",
"height": 500,
"menubar": False,
"plugins": "advlist,autolink,lists,link,image,charmap,print,preview,anchor,"
"searchreplace,visualblocks,code,fullscreen,insertdatetime,media,table,paste,"
"code,help,wordcount",
"toolbar": "undo redo | formatselect | "
"bold italic backcolor | alignleft aligncenter "
"alignright alignjustify | bullist numlist outdent indent | "
"removeformat | help",
}

``TINYMCE_SPELLCHECKER`` (default: ``False``)
Whether to use the spell checker through the supplied view. You must add
``spellchecker`` to the TinyMCE plugin list yourself, it is not added
Expand Down

0 comments on commit b73c832

Please sign in to comment.