Skip to content

Commit

Permalink
change codemirror settings defaults to use mbo theme and use line num…
Browse files Browse the repository at this point in the history
…bers
  • Loading branch information
mgaitan committed May 16, 2015
1 parent 63ba77b commit 6e25944
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/settings.rst
Expand Up @@ -100,11 +100,11 @@ You can override any settings in your project's :file:`settings.py` file

.. confval:: WALIKI_CODEMIRROR_SETTINGS

A dictionary (converted to json) used to `configure Codemirror <http://codemirror.net/doc/manual.html#config>`_. It's default is:
A dictionary (converted to json) used to `configure Codemirror <http://codemirror.net/doc/manual.html#config>`_. The default is:

.. code-block:: python
{'lineNumbers': False, 'theme': 'monokai', 'autofocus': True}
{'theme': 'mbo', 'autofocus': True, 'lineNumbers': True})
.. confval:: WALIKI_RENDER_403

Expand Down
2 changes: 1 addition & 1 deletion waliki/settings.py
Expand Up @@ -88,7 +88,7 @@ def _get_markup_settings(user_settings):
WALIKI_PDF_RST2PDF_BIN = getattr(settings, 'WALIKI_PDF_RST2PDF_BIN', False)

WALIKI_CODEMIRROR_SETTINGS = getattr(settings, 'WALIKI_CODEMIRROR_SETTINGS',
{'lineNumbers': False, 'theme': 'monokai', 'autofocus': True})
{'lineNumbers': False, 'theme': 'mbo', 'autofocus': True, 'lineNumbers': True})

# ('view_page', 'add_page', 'change_page', 'delete_page')
WALIKI_ANONYMOUS_USER_PERMISSIONS = getattr(settings, 'WALIKI_ANONYMOUS_USER_PERMISSIONS',
Expand Down

0 comments on commit 6e25944

Please sign in to comment.