Hopiu
f7bd2186f8
Update widgets.py
...
How about adding those additional values to the template context? This allows having more options on how to render templates.
For example something like bootstrap tabs:
```
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#edit-{{attrs.id}}" role="tab">Edit</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#preview-{{attrs.id}}" role="tab">Preview</a>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content markdownx">
<div class="tab-pane active" id="edit-{{attrs.id}}" role="tabpanel">
{{ markdownx_editor }}
</div>
<div class="tab-pane" id="preview-{{attrs.id}}" role="tabpanel">
<div class="markdownx-preview"></div>
</div>
</div>
```
2017-04-11 08:45:30 +02: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