Skip to content

Commit 0885b35

Browse files
committed
Release v1.1.6
1 parent 5a4cacc commit 0885b35

File tree

19 files changed

+227
-827
lines changed

19 files changed

+227
-827
lines changed

README.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ draceditor |pypi version|
1818
:target: https://pypi.python.org/pypi/draceditor
1919

2020

21-
**DracEditor** is Django Markdown Editor built for Dracos Linux *(https://dracos-linux.org)*. Demo video: https://youtu.be/DZCZD7Y8P0Y
21+
**DracEditor** is Django Markdown Editor built for Dracos Linux *(https://dracos-linux.org)*.
22+
Demo video: https://youtu.be/DZCZD7Y8P0Y
2223

2324

2425
Features
@@ -101,7 +102,7 @@ to get ``IMGUR_CLIENT_ID`` and ``IMGUR_API_KEY``.
101102
# Global draceditor settings
102103
# Input: string boolean, `true/false`
103104
DRACEDITOR_ENABLE_CONFIGS' = {
104-
'imgur': 'true', # to enable/disable imgur uploader.
105+
'imgur': 'true', # to enable/disable imgur/custom uploader.
105106
'mention': 'false', # to enable/disable mention
106107
'jquery': 'true', # to include/revoke jquery (require for admin default django)
107108
}
@@ -199,6 +200,12 @@ Simply safe the markdown content as html ouput with loading the templatetags fro
199200
{{ post.description|safe_markdown }}
200201

201202

203+
Custom Uploader
204+
-----------------
205+
206+
If you want to save the images uploaded to your storage,
207+
**DracEditor** also provide to handle it. Please checkout this `WIKI`_.
208+
202209
Test Draceditor from this Repository
203210
-------------------------------------
204211

@@ -234,3 +241,4 @@ Notes
234241
.. _django-markdownx: https://github.com/adi-/django-markdownx
235242
.. _Python Markdown: https://github.com/waylan/Python-Markdown
236243
.. _Online reStructuredText editor: http://rst.ninjs.org
244+
.. _WIKI: https://github.com/agusmakmun/dracos-markdown-editor/wiki

__screenshot/draceditor-guide.png

11.2 KB
Loading
-53.1 KB
Loading
-192 KB
Binary file not shown.
-190 KB
Binary file not shown.

draceditor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
22

3-
__VERSION__ = '1.1.5'
3+
__VERSION__ = '1.1.6'
44
__AUTHOR__ = 'Agus Makmun (Summon Agus)'
55
__AUTHOR_EMAIL__ = '[email protected]'

draceditor/extensions/del_ins.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
#! /usr/bin/env python
22

3-
4-
'''
3+
"""
54
Del/Ins Extension for Python-Markdown
65
=====================================
76
Wraps the inline content with ins/del tags.
7+
88
Usage
99
-----
1010
>>> import markdown
11-
>>> src = """This is ++added content++ and this is ~~deleted content~~"""
11+
>>> src = '''This is ++added content + + and this is ~~deleted content~~'''
1212
>>> html = markdown.markdown(src, ['del_ins'])
1313
>>> print(html)
1414
<p>This is <ins>added content</ins> and this is <del>deleted content</del>
1515
</p>
16+
1617
Dependencies
1718
------------
1819
* [Markdown 2.0+](http://www.freewisdom.org/projects/python-markdown/)
20+
1921
Copyright
2022
---------
2123
2011, 2012 [The active archives contributors](http://activearchives.org/)
2224
All rights reserved.
23-
This software is released under the modified BSD License.
25+
This software is released under the modified BSD License.
2426
See LICENSE.md for details.
25-
'''
27+
"""
2628

2729

2830
import markdown
@@ -48,4 +50,4 @@ def makeExtension(configs={}):
4850

4951
if __name__ == "__main__":
5052
import doctest
51-
doctest.testmod()
53+
doctest.testmod()

draceditor/extensions/emoji.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,7 @@ def extendMarkdown(self, md, md_globals):
142142

143143
def makeExtension(*args, **kwargs):
144144
return EmojiExtension(*args, **kwargs)
145+
146+
if __name__ == "__main__":
147+
import doctest
148+
doctest.testmod()

draceditor/extensions/mention.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ def extendMarkdown(self, md, md_globals):
4242

4343
def makeExtension(*args, **kwargs):
4444
return MentionExtension(*args, **kwargs)
45+
46+
if __name__ == "__main__":
47+
import doctest
48+
doctest.testmod()

draceditor/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Input: string boolean, `true/false`
55
DRACEDITOR_ENABLE_CONFIGS = getattr(
66
settings, 'DRACEDITOR_ENABLE_CONFIGS', {
7-
'imgur': 'true', # to enable/disable imgur uploader.
7+
'imgur': 'true', # to enable/disable imgur/custom uploader.
88
'mention': 'false', # to enable/disable mention
9-
'jquery': 'true', # to include/revoke jquery (require for admin default django)
9+
'jquery': 'true', # to include/revoke jquery (require for admin default django)
1010
}
1111
)
1212

0 commit comments

Comments
 (0)