Skip to content

Commit 7868518

Browse files
author
Agus Makmun
committed
fix: custom MARTOR_UPLOAD_URL not working #210
1 parent fdadca8 commit 7868518

19 files changed

+109
-160
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ MARTOR_IMGUR_API_KEY = 'your-api-key'
120120
MARTOR_MARKDOWNIFY_FUNCTION = 'martor.utils.markdownify' # default
121121
MARTOR_MARKDOWNIFY_URL = '/martor/markdownify/' # default
122122

123-
# Delay in miliseconds to update editor preview when in living mode.
123+
# Delay in milliseconds to update editor preview when in living mode.
124124
MARTOR_MARKDOWNIFY_TIMEOUT = 0 # update the preview instantly
125125
# or:
126126
MARTOR_MARKDOWNIFY_TIMEOUT = 1000 # default
@@ -242,7 +242,7 @@ admin.site.register(YourModel, YourModelAdmin)
242242

243243
#### Template Renderer
244244

245-
Simply safely parse markdown content as html ouput by loading templatetags from `martor/templatetags/martortags.py`.
245+
Simply safely parse markdown content as html output by loading templatetags from `martor/templatetags/martortags.py`.
246246

247247
```html
248248
{% load martortags %}
@@ -340,7 +340,7 @@ If you want to save the images uploaded to your storage,
340340

341341
### Test Martor from this Repository
342342

343-
Assuming you are already setup with a virtual enviroment (virtualenv):
343+
Assuming you are already setup with a virtual environment (virtualenv):
344344

345345
```
346346
$ git clone https://github.com/agusmakmun/django-markdown-editor.git
@@ -356,7 +356,7 @@ Checkout at http://127.0.0.1:8000/simple-form/ on your browser.
356356

357357
### Martor Commands Reference
358358

359-
![command refference](https://raw.githubusercontent.com/agusmakmun/django-markdown-editor/master/.etc/images/bootstrap/martor-guide.png)
359+
![command reference](https://raw.githubusercontent.com/agusmakmun/django-markdown-editor/master/.etc/images/bootstrap/martor-guide.png)
360360

361361

362362
### Notes

martor/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
__VERSION__ = "1.6.37"
4-
__RELEASE_DATE__ = "09-Mar-2024"
3+
__VERSION__ = "1.6.38"
4+
__RELEASE_DATE__ = "15-Mar-2024"
55
__AUTHOR__ = "Agus Makmun (Summon Agus)"
66
__AUTHOR_EMAIL__ = "[email protected]"

martor/api.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import unicode_literals
33

4-
import json
54
import base64
5+
import json
6+
67
import requests
7-
from .settings import MARTOR_IMGUR_CLIENT_ID, MARTOR_IMGUR_API_KEY
8+
9+
from .settings import MARTOR_IMGUR_API_KEY, MARTOR_IMGUR_CLIENT_ID
810

911
requests.packages.urllib3.disable_warnings()
1012

@@ -39,7 +41,7 @@ def imgur_uploader(image):
3941
)
4042

4143
elif response.status_code == 415:
42-
# Unsupport File type
44+
# Unsupported File type
4345
return json.dumps(
4446
{
4547
"status": response.status_code,

martor/extensions/mention.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import markdown
22
from django.contrib.auth import get_user_model
3+
34
from ..settings import MARTOR_ENABLE_CONFIGS, MARTOR_MARKDOWN_BASE_MENTION_URL
45

56
"""
@@ -26,7 +27,7 @@ def handleMatch(self, m):
2627
username=username, is_active=True
2728
) # noqa: E501
2829

29-
"""Makesure `username` is registered and actived."""
30+
"""Makesure `username` is registered and activated."""
3031
if MARTOR_ENABLE_CONFIGS["mention"] == "true":
3132
if users.exists():
3233
url = "{0}{1}/".format(

martor/static/martor/css/martor-admin.min.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Name : Martor v1.6.37
2+
* Name : Martor v1.6.38
33
* Created by : Agus Makmun (Summon Agus)
4-
* Release date : 09-Mar-2024
4+
* Release date : 15-Mar-2024
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
66
* Repository : https://github.com/agusmakmun/django-markdown-editor
77
**/

martor/static/martor/css/martor.bootstrap.min.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Name : Martor v1.6.37
2+
* Name : Martor v1.6.38
33
* Created by : Agus Makmun (Summon Agus)
4-
* Release date : 09-Mar-2024
4+
* Release date : 15-Mar-2024
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
66
* Repository : https://github.com/agusmakmun/django-markdown-editor
77
**/

martor/static/martor/css/martor.semantic.min.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Name : Martor v1.6.37
2+
* Name : Martor v1.6.38
33
* Created by : Agus Makmun (Summon Agus)
4-
* Release date : 09-Mar-2024
4+
* Release date : 15-Mar-2024
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
66
* Repository : https://github.com/agusmakmun/django-markdown-editor
77
**/

martor/static/martor/js/martor.bootstrap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Name : Martor v1.6.37
2+
* Name : Martor v1.6.38
33
* Created by : Agus Makmun (Summon Agus)
4-
* Release date : 09-Mar-2024
4+
* Release date : 15-Mar-2024
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
66
* Repository : https://github.com/agusmakmun/django-markdown-editor
77
**/

martor/static/martor/js/martor.bootstrap.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/js/martor.semantic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Name : Martor v1.6.37
2+
* Name : Martor v1.6.38
33
* Created by : Agus Makmun (Summon Agus)
4-
* Release date : 09-Mar-2024
4+
* Release date : 15-Mar-2024
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
66
* Repository : https://github.com/agusmakmun/django-markdown-editor
77
**/

0 commit comments

Comments
 (0)