From 67231d6f5e6ad8e0bb86cc8e0360e889fb737202 Mon Sep 17 00:00:00 2001 From: cdesch Date: Tue, 9 Feb 2021 03:05:26 -0500 Subject: [PATCH] Bump to Quill Version 1.3.7 (#34) * Bump to Quill Version 1.3.7 Bump to Quill Version 1.3.7 - This version of Quill fixes Quill Vuln https://github.com/quilljs/quill/issues/2438 Here is the change commit to fix the vuln in Quill https://github.com/quilljs/quill/pull/2439 The Vuln is described here: https://ossindex.sonatype.org/vuln/d96c07dd-81f9-41f6-b2bd-531143bcaeab * Adding JS/CSS include instructions from README.md Resolves issue [#33](https://github.com/LeeHanYeong/django-quill-editor/issues/33) --- .../templates/django_quill/media.html | 4 ++-- docs/pages/using-as-form.md | 24 ++++++++++++++++++- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/django_quill/templates/django_quill/media.html b/django_quill/templates/django_quill/media.html index 6757fe6..b102a3f 100644 --- a/django_quill/templates/django_quill/media.html +++ b/django_quill/templates/django_quill/media.html @@ -5,8 +5,8 @@ - - + + diff --git a/docs/pages/using-as-form.md b/docs/pages/using-as-form.md index 20f9afb..4b0999c 100644 --- a/docs/pages/using-as-form.md +++ b/docs/pages/using-as-form.md @@ -1,5 +1,28 @@ # Using as Form +Add the CSS and JS to the `` of the template or base template. + +There are two ways to add CSS and JS files to a template. + + - If there is a **Form** with QuillField added, add `{{ form.media }}` to the `` tag. + + ```django + + {{ form.media }} + + ``` + + - Or, import CSS and JS files directly using `{% include %}` template tags. + + ```django + + + {% include 'django_quill/media.html' %} + + ``` + + + Add `QuillFormField` to the **Form class** you want to use. ```python @@ -25,7 +48,6 @@ def form_view(request): ``` - In the template, use the received **Form instance** variable. (in the above case, **'form'**) ```html