Skip to content

Commit

Permalink
quill-image-compressor version update
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeHanYeong committed Dec 15, 2021
1 parent e492242 commit 78086fa
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django_quill/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
MEDIA_JS = [
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js",
"https://cdn.quilljs.com/1.3.7/quill.min.js",
"https://unpkg.com/[email protected].4/dist/quill.imageCompressor.min.js",
"https://unpkg.com/[email protected].5/dist/quill.imageCompressor.min.js",
"https://cdn.jsdelivr.net/npm/[email protected]/image-resize.min.js",
"django_quill/django_quill.js",
]
Expand Down
2 changes: 1 addition & 1 deletion django_quill/templates/django_quill/media.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script src="//cdn.quilljs.com/1.3.7/quill.min.js"></script>

<!-- quill-image-compress -->
<script src="https://unpkg.com/[email protected].4/dist/quill.imageCompressor.min.js"></script>
<script src="https://unpkg.com/[email protected].5/dist/quill.imageCompressor.min.js"></script>

<!-- quill-image-resize -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/image-resize.min.js"></script>
Expand Down
39 changes: 39 additions & 0 deletions playground/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,45 @@
MEDIA_URL = "/media/"
MEDIA_ROOT = BASE_DIR / ".media"

# Quill
QUILL_CONFIGS = {
"default": {
"theme": "snow",
"modules": {
"syntax": True,
"toolbar": [
[
{"font": []},
{"header": []},
{"align": []},
"bold",
"italic",
"underline",
"strike",
"blockquote",
{"color": []},
{"background": []},
],
["code-block", "link", "image"],
["clean"],
],
# quill-image-compress
"imageCompressor": {
"quality": 0.8,
"maxWidth": 2000,
"maxHeight": 2000,
"imageType": "image/jpeg",
"keepImageTypes": [],
"ignoreImageTypes": ["image/webp"],
"debug": False,
"suppressErrorLogging": True,
},
# quill-image-resize
"imageResize": {},
},
},
}

# Custom
LOGIN_URL = "admin:login"
LOGIN_REDIRECT_URL = "admin:index"
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.28
0.1.29

0 comments on commit 78086fa

Please sign in to comment.