-
Notifications
You must be signed in to change notification settings - Fork 23
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
add django 1.10 compability #7
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,8 @@ | |
var toolbarSelector = '[data-quill="{{ "toolbar_selector"|quill_conf }}"]'; | ||
var id = '{{ id }}'; | ||
var imageModuleOpts = { | ||
handler: '{% url "admin:quill-file-upload" %}', | ||
allowedExtensions: JSON.parse('{{ "allowed_image_extensions"|quill_conf_json }}') | ||
allowedExtensions: JSON.parse('{{ "allowed_image_extensions"|quill_conf_json }}'), | ||
// handler: '{% url "admin:quill-file-upload" %}', #Commented this our because trown an error. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't a viable solution, without an explanation. Commenting out code isn't a preferred practice either. |
||
}; | ||
var theme = '{{ "theme"|quill_conf }}'; | ||
var editor = new QuillDjango(id, editorSelector, toolbarSelector, imageModuleOpts, theme); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from django import forms | ||
from django.apps import apps | ||
from django.forms.util import flatatt | ||
from django.forms.utils import flatatt | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This won't work for older versions of Django. |
||
from django.template.loader import render_to_string | ||
from django.templatetags.static import static | ||
from django.utils.safestring import mark_safe | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
patterns
is referenced below, how does this work?