Skip to content

Commit 20a7434

Browse files
committed
merge many pull requests
1 parent 6717f33 commit 20a7434

File tree

5 files changed

+26
-19
lines changed

5 files changed

+26
-19
lines changed

README.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,13 @@ to get ``IMGUR_CLIENT_ID`` and ``IMGUR_API_KEY``.
113113
# Global martor settings
114114
# Input: string boolean, `true/false`
115115
MARTOR_ENABLE_CONFIGS = {
116-
'imgur': 'true', # to enable/disable imgur/custom uploader.
117-
'mention': 'false', # to enable/disable mention
118-
'jquery': 'true', # to include/revoke jquery (require for admin default django)
119-
'living': 'false', # to enable/disable live updates in preview
116+
'emoji': 'true', # to enable/disable emoji icons.
117+
'imgur': 'true', # to enable/disable imgur/custom uploader.
118+
'mention': 'false', # to enable/disable mention
119+
'jquery': 'true', # to include/revoke jquery (require for admin default django)
120+
'living': 'false', # to enable/disable live updates in preview
121+
'spellcheck': 'true', # to enable/disable spellcheck in form textareas
122+
'hljs': 'true', # to enable/disable hljs highlighting in preview
120123
}
121124

122125
# To setup the martor editor with label or not (default is False)

martor_demo/app/templates/base.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
<script type="text/javascript" src="{% static 'plugins/js/mode-markdown.js' %}"></script>
5353
<script type="text/javascript" src="{% static 'plugins/js/ext-language_tools.js' %}"></script>
5454
<script type="text/javascript" src="{% static 'plugins/js/theme-github.js' %}"></script>
55+
<script type="text/javascript" src="{% static 'plugins/js/typo.js' %}"></script>
56+
<script type="text/javascript" src="{% static 'plugins/js/spellcheck.js' %}"></script>
5557
<script type="text/javascript" src="{% static 'plugins/js/highlight.min.js' %}"></script>
5658
<script type="text/javascript" src="{% static 'plugins/js/resizable.min.js' %}"></script>
5759
<script type="text/javascript" src="{% static 'plugins/js/emojis.min.js' %}"></script>

martor_demo/martor_demo/settings.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"""
22
Django settings for martor_demo project.
33
4-
Generated by 'django-admin startproject' using Django 2.2.2.
4+
Generated by 'django-admin startproject' using Django 3.0.2.
55
66
For more information on this file, see
7-
https://docs.djangoproject.com/en/2.2/topics/settings/
7+
https://docs.djangoproject.com/en/3.0/topics/settings/
88
99
For the full list of settings and their values, see
10-
https://docs.djangoproject.com/en/2.2/ref/settings/
10+
https://docs.djangoproject.com/en/3.0/ref/settings/
1111
"""
1212

1313
import os
@@ -18,7 +18,7 @@
1818

1919

2020
# Quick-start development settings - unsuitable for production
21-
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
21+
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
2222

2323
# SECURITY WARNING: keep the secret key used in production secret!
2424
SECRET_KEY = '93fs*#h77*vj&2#2f+!y=kifg0s&63768398a(kx126itq(*6r'
@@ -27,11 +27,13 @@
2727
DEBUG = True
2828
ALLOWED_HOSTS = ['*']
2929
MARTOR_ENABLE_CONFIGS = {
30-
'imgur': 'true', # to enable/disable imgur/custom uploader.
31-
'mention': 'true', # to enable/disable mention
32-
'jquery': 'true', # to include/revoke jquery (require for admin default django)
33-
'living': 'false', # to enable/disable live updates in preview
34-
'spellcheck': 'true', # to enable/disable spellcheck in the editor.
30+
'emoji': 'true', # to enable/disable emoji icons.
31+
'imgur': 'true', # to enable/disable imgur/custom uploader.
32+
'mention': 'true', # to enable/disable mention
33+
'jquery': 'true', # to include/revoke jquery (require for admin default django)
34+
'living': 'false', # to enable/disable live updates in preview
35+
'spellcheck': 'true', # to enable/disable spellcheck in form textareas
36+
'hljs': 'true', # to enable/disable hljs highlighting in preview
3537
}
3638

3739
# Application definition
@@ -79,7 +81,7 @@
7981

8082

8183
# Database
82-
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
84+
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
8385

8486
DATABASES = {
8587
'default': {
@@ -90,7 +92,7 @@
9092

9193

9294
# Password validation
93-
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
95+
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
9496

9597
AUTH_PASSWORD_VALIDATORS = [
9698
{
@@ -109,7 +111,7 @@
109111

110112

111113
# Internationalization
112-
# https://docs.djangoproject.com/en/2.2/topics/i18n/
114+
# https://docs.djangoproject.com/en/3.0/topics/i18n/
113115

114116
LANGUAGE_CODE = 'en-us'
115117

@@ -123,7 +125,7 @@
123125

124126

125127
# Static files (CSS, JavaScript, Images)
126-
# https://docs.djangoproject.com/en/2.2/howto/static-files/
128+
# https://docs.djangoproject.com/en/3.0/howto/static-files/
127129

128130
STATIC_URL = '/static/'
129131
MEDIA_URL = '/media/'

martor_demo/martor_demo/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""martor_demo URL Configuration
22
33
The `urlpatterns` list routes URLs to views. For more information please see:
4-
https://docs.djangoproject.com/en/2.2/topics/http/urls/
4+
https://docs.djangoproject.com/en/3.0/topics/http/urls/
55
Examples:
66
Function views
77
1. Add an import: from my_app import views

martor_demo/martor_demo/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
It exposes the WSGI callable as a module-level variable named ``application``.
55
66
For more information on this file, see
7-
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
7+
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
88
"""
99

1010
import os

0 commit comments

Comments
 (0)