Commit graph

20 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
adi
016aa79967 CSS fix 2017-03-21 22:14:56 +01: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
f0e5ac861d Updates - mostly to do with docs and front-end settings. 2017-03-19 17:19:28 +00:00
b s
401e5f5167 remove print statement (#46) 2017-02-21 23:00:51 +01:00
adi
87933b55e7 Fix for custom CSS classes in the widget
v.1.7.1
2017-01-16 20:52:31 +01:00
adi
3f46bddf21 Template render syntax fix 2016-08-15 13:27:06 +02: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
adi
a617143b2f Custom urls path 2015-10-13 17:34:31 +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
23ed6e1929 v0.2.9 2014-11-12 16:04:21 +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