Commit graph

148 commits

Author SHA1 Message Date
adi
e74785c108 [Closes #32] Added names to URL patterns 2017-05-02 21:47:45 +02:00
adi
f640ede74c v.2.0.18 2017-05-02 21:32:46 +02:00
adi
14f6748cbc [Fixes #65] MARKDOWNX_IMAGE_MAX_SIZE not respected 2017-05-02 21:15:45 +02:00
Pouria Hadjibagheri
632cae5626 Check visibility before resizing the editor. 2017-04-25 15:14:26 +01:00
Pouria Hadjibagheri
00ae0f2e93 Rectified JS monitoring bug. 2017-04-25 14:48:37 +01:00
Pouria Hadjibagheri
03984c1a5c Minor corrections. 2017-04-25 10:42:00 +01:00
Pouria Hadjibagheri
9decf2cb93 SVG/JS monitoring bug rectified. 2017-04-25 10:03:45 +01:00
Pouria Hadjibagheri
2826e581d5 Updated the docs + minor clean ups. 2017-04-25 01:17:10 +01:00
adi
05f324dd44 README unification 2017-04-23 21:42:48 +02:00
adi
bffa7bb893 Merge branch 'master' of https://github.com/adi-/django-markdownx
* 'master' of https://github.com/adi-/django-markdownx:
  __init__ import altered.
  Minor clean up.

# Conflicts:
#	setup.py
2017-04-23 21:18:45 +02:00
adi
b1acd600be Cleanup 2017-04-23 20:21:10 +02:00
Pouria Hadjibagheri
82cda63163 Merge remote-tracking branch 'origin/master' 2017-04-23 19:14:21 +01:00
Pouria Hadjibagheri
008682237a Minor clean up. 2017-04-23 19:14:08 +01:00
adi
139b9a453b static files 2017-04-23 18:13:48 +02:00
adi
98b9d3def6 setuptools related 2017-04-23 18:13:37 +02:00
Pouria Hadjibagheri
34f3d60820 documentations. 2017-04-23 13:43:25 +01:00
Pouria Hadjibagheri
96f68a23dd Added dev.py to facilitate tests and contributions. 2017-04-23 10:03:19 +01:00
Pouria Hadjibagheri
af002f3d59 Updated docs and interfaces. 2017-03-24 20:01:58 +00:00
Pouria Hadjibagheri
004b408eac Delocalisation of functions in KeyEvents. 2017-03-24 11:05:00 +00:00
Pouria Hadjibagheri
b87f67f395 Support cmd/ctrl + [ and cmd/ctrl + ] for indentations. 2017-03-24 00:06:27 +00:00
adi
740b7b20c4 cmd+[ and cmd+] key support 2017-03-22 16:06:01 +01:00
adi
b620a6e347 Vagrant dev env support
Static builds moved from Gulp to NPM
Static sources moved to .static folder
Removed and ignored compiled statics
Testapp base template cleanup
2017-03-22 15:11:53 +01:00
Pouria Hadjibagheri
d37cfbc012 Delocalisation of functions, prevention of "double requests" at initiation. 2017-03-22 11:01:14 +00:00
Pouria Hadjibagheri
e4d4bf34a9 Merge remote-tracking branch 'origin/v.2+docs' into v.2+docs 2017-03-22 10:05:14 +00:00
Pouria Hadjibagheri
8a78618a9f Delocalisation of functions. 2017-03-22 09:58:26 +00:00
adi
016aa79967 CSS fix 2017-03-21 22:14:56 +01:00
Pouria Hadjibagheri
16e2652298 Localised callback events. 2017-03-21 19:28:16 +00:00
Pouria Hadjibagheri
aa3e39c65e Updated docs. 2017-03-21 19:26:44 +00:00
Pouria Hadjibagheri
fb2ab78632 Solving compatibility issues. 2017-03-20 11:29:25 +00:00
Pouria Hadjibagheri
4ced4e6aab Backwards compatibility issue solved. 2017-03-20 11:16:11 +00:00
Pouria Hadjibagheri
9d60c56045 Cleaned up + docs template.
Cleaned up the the new Django 1.11+ compatibility code and added documentations template. Also, `add_markdownx_attrs` now returns the updated dict with the output used for updating widget attributes.
2017-03-20 10:46:11 +00:00
Pouria Hadjibagheri
b1dfad6ec1 Specific upload of Django version. 2017-03-20 10:07:40 +00:00
Aymeric Augustin
f20c332a55 Fix #50 -- Native template-based widget rendering. 2017-03-20 10:53:29 +01:00
Pouria Hadjibagheri
15176fe807 Small correction. 2017-03-19 18:13:11 +00:00
Pouria Hadjibagheri
f0e5ac861d Updates - mostly to do with docs and front-end settings. 2017-03-19 17:19:28 +00:00
Pouria Hadjibagheri
b5eb7f9c0c JavaScript updated. 2017-03-19 16:43:53 +00:00
Pouria Hadjibagheri
8506ea179d Now supports TAB indentations (including in selected sub-strings) and unindentation with SHIFT + TAB. 2017-03-18 20:53:22 +00:00
Pouria Hadjibagheri
8120d067b2 Addresses compatibility issues - now supports IE 10+. 2017-03-18 00:30:29 +00:00
Pouria Hadjibagheri
c9aa6814bf IE 10+ support for all features / IE 6+ support for non-upload features. 2017-03-17 10:51:08 +00:00
Pouria Hadjibagheri
6c8ba1d48b JavaScript code rewritten in Pure ECMA 2017 and compiled in ECMA 5 - no longer uses JQuery. 2017-03-17 00:23:49 +00:00
Pouria Hadjibagheri
7deb0073aa Added 4 new locale definitions + updated the existing ones. 2017-03-17 00:15:54 +00:00
Pouria Hadjibagheri
734959fb07 Replace weired quote characters so Python 2 will understand. 2017-03-12 23:32:34 +00:00
Pouria Hadjibagheri
0ae4b9cae6 Compatibility issue + docs. 2017-03-12 23:26:02 +00:00
Pouria Hadjibagheri
03de636a35 Python 2 unicode compatibility - yet again. 2017-03-12 21:31:26 +00:00
Pouria Hadjibagheri
be2543c509 Unicode compatibility for Python 2 - again! 2017-03-12 21:28:43 +00:00
Pouria Hadjibagheri
3d2e0c77aa Unicode compatibility. 2017-03-12 21:17:53 +00:00
Pouria Hadjibagheri
70c1b8e15a Now with comprehensive documentations. 2017-03-12 20:57:18 +00:00
Pouria Hadjibagheri
e1991de714 New version strategy: updates only needed in __init__, docs and setup files will then automatically follow. 2017-03-12 20:51:16 +00:00
Pouria Hadjibagheri
64c63d6ed4 Now with comprehensive documentations. 2017-03-12 20:50:31 +00:00
Pouria Hadjibagheri
9190d4f5fc Now with comprehensive documentations. 2017-03-12 20:42:32 +00:00
Pouria Hadjibagheri
ca4478a220 New version strategy: updates only needed in __init__, docs and setup files will then automatically follow. 2017-03-12 20:35:32 +00:00
Pouria Hadjibagheri
38649c964a Separated exceptions, and added a JavaScript monitoring for SVG files. 2017-03-12 20:29:15 +00:00
adi
b43623d950 Small refactoring: events naming, logging only errors in console. 2017-03-10 10:47:49 +01:00
Didi Hoffmann
29845b9425 Added three more triggers that enable an animation to be shown when a file is uploaded. 2017-03-08 12:11:14 +01:00
b s
401e5f5167 remove print statement (#46) 2017-02-21 23:00:51 +01:00
Pouria Hadjibagheri
9d6cb94bd8 Rectified the error causing image size alteration for non-svg images being ignored. More clean ups, and breakdown of functions inline with functional/OOP best practices, to make them easier to debug. 2017-01-16 20:18:07 +00:00
Pouria Hadjibagheri
b76d0a1d90 Small clean up of the code. 2017-01-16 20:15:46 +00:00
adi
87933b55e7 Fix for custom CSS classes in the widget
v.1.7.1
2017-01-16 20:52:31 +01:00
Pouria Hadjibagheri
d366798404 SVG upload (#39)
* Added SVG image upload functionality, cleaned up the code slightly, and added some documentations.

* Added 'image/svg+xml' example to MARKDOWNX_UPLOAD_CONTENT_TYPES in settings.
2017-01-10 19:14:56 +01:00
Karl Odie
dbb572259b Stop widget being overridden if set to a multiwidget containing a markdownx widget (#38) 2017-01-07 17:18:07 +01:00
adi
9dba8c0abd Corrupted image upload exception 2016-08-25 21:06:00 +02:00
adi
3f46bddf21 Template render syntax fix 2016-08-15 13:27:06 +02:00
adi
ae7de5a499 Small improvements 2016-06-18 11:43:34 +02:00
adi
89491f491f Merge branch 'master' of https://github.com/adi-/django-markdownx 2016-06-18 11:07:44 +02:00
adi
daa8d635da Fix for module setting 2016-06-18 11:07:38 +02:00
Camilo Nova
fc8c27f94f Use django default storage (#23)
It works when you want to use another storage. Tested with django-storages with S3 and local file system.
2016-06-18 10:54:01 +02:00
adi-
9c2899db99 Test fix 2016-05-14 21:38:39 +02:00
Aymeric Augustin
7b012db5a5 Make it possible to customize image insertion code. (#20)
* Make it possible to customize image insertion code.

It can be useful to insert more that just a markdown image tag, for
example to provide additional control on the layout of images. Since
there's no convenient way to handle this on the JavaScript side, we
generate the code to insert in Python. Then it can be overridden with
the existing extensibility mechanism, that is, with a custom view.

* Restore backwards-compatibility.

The previous commit is backwards-incompatible for users who pointed
MARKDOWNX_UPLOAD_URLS_PATH to a custom view. This commit restores
backwards-compatibility with the previous API.
2016-05-14 11:58:43 +02:00
Aymeric Augustin
2ba01376a7 Make rendering the markdown actually abstractable.
Even after e35c1aa0c4, `MarkdownifyView`
is still hardcoded to call `markdownx.utils.mardownify`, regardless of
the value of `MARKDOWNX_MARKDOWNIFY_FUNCTION`. This commit calls the
function designated by that setting instead.
2016-04-30 16:16:40 +02:00
adi
a6f9558cb0 Maintenance 2016-02-12 17:44:02 +01:00
adi
d3b620b0dd Description fix 2016-02-12 14:18:11 +01:00
adi
e35c1aa0c4 [Closes #15] Make rendering the markdown abstractable 2016-02-12 14:01:59 +01:00
adi
cab13adb00 Basic event triggering 2016-02-12 11:47:23 +01:00
adi
292d5fddee Merge pull request #13 from mvdwaeter/master
Fixes issue #12: Ability to change the url of imageupload in settings
2016-02-12 10:56:59 +01:00
Mariusz Jamro
680dd5023b Fix #16 - support for subclasses of MarkdownxWidget in the MarkdownxFormField 2016-02-12 09:39:20 +01:00
Michael van de Waeter
4ae027b634 Fixes issue #12: Ability to change the url of imageupload in settings 2015-12-01 00:59:43 +01:00
Drew Hubl
d07a4f4bfa Add Markdown extension config setting 2015-10-28 02:56:01 -06:00
Eduard Sukharev
a0a9de0395 Fix accessing file length in python3 2015-10-19 18:44:58 +04:00
adi
d3217cc317 [Fixes #6] Fix for Python 3.x with string argument expected, got 'bytes' 2015-10-18 10:25:03 +02:00
adi
a617143b2f Custom urls path 2015-10-13 17:34:31 +02:00
adi
281ebb8315 Missing var 2015-10-06 09:42:15 +02:00
adi
7a391255a0 Critical fix for image upload 2015-10-06 09:24:37 +02:00
adi
d467253550 Cleanup 2015-10-06 08:23:03 +02:00
adi
5675fe27c8 Merge pull request #2 from pydanny/master
Add Python 3.5 support
2015-09-30 12:57:33 +02:00
Adrian
f6ffd94521 travis 2015-09-30 12:51:07 +02:00
Daniel Roy Greenfeld
38d1126cbc Correct attrs handling 2015-09-29 10:34:37 -07:00
Daniel Roy Greenfeld
37258c47fb Add Python 3.5 support 2015-09-28 21:28:20 -07:00
Adrian
854bedf48e v1.0.1 2015-09-06 23:13:50 +02:00
Adrian
a14b22fda0 Works for 1.0 version 2015-09-06 20:46:46 +02:00
Adrian
df753824de Path fix by argaen 2014-12-10 22:27:25 +01:00
Adrian
59b00db32d Better editor height updates
Refresh preview on image upload
Small fixes
2014-12-03 20:29:58 +01:00
Adrian
d55883c1f0 v0.4.0 2014-11-14 12:29:37 +01:00
Adrian
09db8cdf16 v0.3.1 2014-11-14 11:11:36 +01:00
Adrian
a7e2678da8 Version bump 2014-11-13 10:40:51 +01:00
Adrian
23ed6e1929 v0.2.9 2014-11-12 16:04:21 +01:00
Adrian
884d66cc16 Allow to paste tabs using Tab button 2014-11-05 23:11:33 +01:00
Adrian
3fb0b885a7 change context name editor to markdownx_editor for better consistency 2014-11-02 21:10:09 +01:00
Adrian
2e11c1dbb0 Init 2014-11-01 22:02:31 +01:00