Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to Quill Version 1.3.7 #34

Merged
merged 2 commits into from Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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