@@ -11,7 +11,7 @@ martor |pypi version|
1111.. image :: https://img.shields.io/pypi/pyversions/martor.svg
1212 :target: https://pypi.python.org/pypi/martor
1313
14- .. image :: https://img.shields.io/badge/Django-1.8%20%3E=%203.0 -green.svg
14+ .. image :: https://img.shields.io/badge/Django-1.8%20%3E=%203.1 -green.svg
1515 :target: https://www.djangoproject.com
1616
1717.. image :: https://travis-ci.org/agusmakmun/django-markdown-editor.svg?branch=master
@@ -25,8 +25,8 @@ Features
2525
2626* Live Preview
2727* Integrated with `Ace Editor `_
28- * Integrated with `Semantic-UI `_
29- * Supports Multiple Fields (`fixed this issue `_)
28+ * Supported with ` Bootstrap `_ and `Semantic-UI `_
29+ * Supported Multiple Fields (`fixed this issue `_)
3030* Upload Images to imgur.com `(via API) ` and `custom uploader `_.
3131* Direct Mention users ``@[username] `` - `(requires user to logged in) `
3232* Supports embed/iframe video from (Youtube, Vimeo, Dailymotion, Yahoo, Veoh, & Metacafe)
@@ -41,9 +41,9 @@ Features
4141Preview
4242------------------------------
4343
44- .. image :: https://raw.githubusercontent.com/agusmakmun/django-markdown-editor/master/.etc/images/martor-preview -editor.png
44+ .. image :: https://raw.githubusercontent.com/agusmakmun/django-markdown-editor/master/.etc/images/bootstrap/ martor-editor.png
4545
46- .. image :: https://raw.githubusercontent.com/agusmakmun/django-markdown-editor/master/.etc/images/martor-preview-result .png
46+ .. image :: https://raw.githubusercontent.com/agusmakmun/django-markdown-editor/master/.etc/images/bootstrap/ martor-preview.png
4747
4848
4949Requirements
@@ -110,6 +110,9 @@ to get ``IMGUR_CLIENT_ID`` and ``IMGUR_API_KEY``.
110110
111111::
112112
113+ # Choices are: "semantic-ui", "bootstrap"
114+ MARTOR_THEME = 'bootstrap'
115+
113116 # Global martor settings
114117 # Input: string boolean, `true/false`
115118 MARTOR_ENABLE_CONFIGS = {
@@ -171,9 +174,9 @@ to get ``IMGUR_CLIENT_ID`` and ``IMGUR_API_KEY``.
171174
172175 # If you need to use your own themed semantic ui dependency
173176 # replace the values with the file in your static files dir
174- MARTOR_ALTERNATIVE_SEMANTIC_JS_FILE = "semantic-themed/semantic.min.js"
175- MARTOR_ALTERNATIVE_SEMANTIC_CSS_FILE = "semantic-themed/semantic.min.css"
176- MARTOR_ALTERNATIVE_JQUERY_JS_FILE = "jquery/dist/jquery.js"
177+ MARTOR_ALTERNATIVE_JS_FILE_THEME = "semantic-themed/semantic.min.js" # default None
178+ MARTOR_ALTERNATIVE_CSS_FILE_THEME = "semantic-themed/semantic.min.css" # default None
179+ MARTOR_ALTERNATIVE_JQUERY_JS_FILE = "jquery/dist/jquery.js" # default None
177180
178181Check this setting is not set else csrf will not be sent over ajax calls:
179182
@@ -265,7 +268,7 @@ Checkout at http://127.0.0.1:8000/simple-form/ on your browser.
265268Martor Commands Reference
266269--------------------------------
267270
268- .. image :: https://raw.githubusercontent.com/agusmakmun/django-markdown-editor/master/.etc/images/martor-guide.png
271+ .. image :: https://raw.githubusercontent.com/agusmakmun/django-markdown-editor/master/.etc/images/bootstrap/ martor-guide.png
269272
270273
271274Notes
@@ -275,7 +278,8 @@ Notes
275278
276279
277280.. _Ace Editor : https://ace.c9.io
278- .. _Semantic-UI : http://semantic-ui.com
281+ .. _Bootstrap : https://getbootstrap.com
282+ .. _Semantic-UI : https://semantic-ui.com
279283.. _PyPI : https://pypi.python.org/pypi/martor
280284.. _django-markdownx : https://github.com/adi-/django-markdownx
281285.. _Python Markdown : https://github.com/waylan/Python-Markdown
0 commit comments