Skip to content

Commit

Permalink
Bump to Quill Version 1.3.7 (#34)
Browse files Browse the repository at this point in the history
* Bump to Quill Version 1.3.7

Bump to Quill Version 1.3.7 - This version of Quill fixes Quill Vuln quilljs/quill#2438

Here is the change commit to fix the vuln in Quill quilljs/quill#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](#33)
  • Loading branch information
cdesch committed Feb 9, 2021
1 parent 1dbd719 commit 67231d6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
4 changes: 2 additions & 2 deletions django_quill/templates/django_quill/media.html
Expand Up @@ -5,8 +5,8 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js"></script>

<!-- Quill.js -->
<link href="//cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
<script src="//cdn.quilljs.com/1.3.6/quill.min.js"></script>
<link href="//cdn.quilljs.com/1.3.7/quill.snow.css" rel="stylesheet">
<script src="//cdn.quilljs.com/1.3.7/quill.min.js"></script>

<!-- Custom -->
<link rel="stylesheet" href="{% static 'django_quill/django_quill.css' %}">
Expand Down
24 changes: 23 additions & 1 deletion docs/pages/using-as-form.md
@@ -1,5 +1,28 @@
# Using as Form

Add the CSS and JS to the `<head>` 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 `<head>` tag.

```django
<head>
{{ form.media }}
</head>
```

- Or, import CSS and JS files directly using `{% include %}` template tags.

```django
<head>
<!-- django-quill-editor Media -->
{% include 'django_quill/media.html' %}
</head>
```



Add `QuillFormField` to the **Form class** you want to use.

```python
Expand All @@ -25,7 +48,6 @@ def form_view(request):
```



In the template, use the received **Form instance** variable. (in the above case, **'form'**)

```html
Expand Down

0 comments on commit 67231d6

Please sign in to comment.