Commit graph

215 commits

Author SHA1 Message Date
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
b3a715fa31 Merge remote-tracking branch 'origin/v.2+docs' into v.2+docs 2017-03-24 00:07:00 +00:00
Pouria Hadjibagheri
b87f67f395 Support cmd/ctrl + [ and cmd/ctrl + ] for indentations. 2017-03-24 00:06:27 +00:00
adi
f0f3396e32 Cleanup 2017-03-22 22:50:44 +01:00
adi
b44d6d5f20 Changed to NAT network 2017-03-22 22:46:45 +01:00
adi
740b7b20c4 cmd+[ and cmd+] key support 2017-03-22 16:06:01 +01:00
adi
e0ab9cb7aa Django migrations 2017-03-22 15:26:40 +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
d7a0166f9a Added Django 1.11b1 to the badge. 2017-03-20 11:40:33 +00:00
Pouria Hadjibagheri
1b90db9247 Merge pull request #52 from aaugustin/v.2+docs
Fix #50 -- Native template-based widget rendering.
2017-03-20 11:32:27 +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
acd947b2b9 Docs theme. 2017-03-19 17:14:33 +00:00
Pouria Hadjibagheri
ab387e874b docs update 2017-03-19 17:03:25 +00:00
Pouria Hadjibagheri
b5eb7f9c0c JavaScript updated. 2017-03-19 16:43:53 +00:00
Pouria Hadjibagheri
b962b7aea4 Docs updated. 2017-03-19 16:38:02 +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
1e0c8fc596 Updated docs. 2017-03-18 10:39:12 +00:00
Pouria Hadjibagheri
ea677caafb Documentations. 2017-03-18 10:11:05 +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
25033cebdd Beta version corrected. 2017-03-13 12:55:13 +00:00
Pouria Hadjibagheri
1682db03bd Now includes different operating systems too. 2017-03-13 01:01:25 +00:00
Pouria Hadjibagheri
b5071b6db9 Now includes different operating systems too. 2017-03-13 00:53:59 +00:00
Pouria Hadjibagheri
d6576846ae Now includes different operating systems too. 2017-03-13 00:50:31 +00:00
Pouria Hadjibagheri
2cc300cb58 Now includes different operating systems too. 2017-03-13 00:48:31 +00:00
Pouria Hadjibagheri
638d5fc698 Now includes different operating systems too. 2017-03-13 00:47:34 +00:00
Pouria Hadjibagheri
57fbe0642c Now includes different operating systems too. 2017-03-13 00:31:42 +00:00
Pouria Hadjibagheri
7e8c5256a2 Now includes different operating systems too. 2017-03-13 00:29:53 +00:00
Pouria Hadjibagheri
700136f87d Updated to include Django 1.11 2017-03-13 00:24:56 +00:00
Pouria Hadjibagheri
e3c14f5314 Updated travis to include Django dev version. 2017-03-13 00:20:34 +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