Added Django 1.11+ widget

This commit is contained in:
adi 2017-05-12 00:05:55 +02:00
parent f5c9b8f790
commit f30ca72003

View file

@ -23,7 +23,10 @@ Here is an example of the contents:
<div class="markdownx row">
<div class="col-md-6">
<!-- Django 1.10 and below -->
{{ markdownx_editor }}
<!-- Django 1.11+ -->
{% include 'django/forms/widgets/textarea.html' %}
</div>
<div class="col-md-6">
<div class="markdownx-preview"></div>
@ -359,4 +362,4 @@ the number of CPUs, the amount memory, and how much you are willing to compromis
.. _XSS (Cross-site Scripting) attack: https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)
.. _presentation: https://www.owasp.org/images/0/03/Mario_Heiderich_OWASP_Sweden_The_image_that_called_me.pdf
.. _documentations: https://docs.djangoproject.com/en/dev/topics/security/#cross-site-scripting-xss-protection
.. _CSRF protection middleware: https://docs.djangoproject.com/en/dev/ref/middleware/#module-django.middleware.csrf
.. _CSRF protection middleware: https://docs.djangoproject.com/en/dev/ref/middleware/#module-django.middleware.csrf