mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-16 21:40:24 +00:00
Added Django 1.11+ widget
This commit is contained in:
parent
f5c9b8f790
commit
f30ca72003
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue