tinymce_7
This commit is contained in:
parent
ca290769ff
commit
1f9fd92250
2 changed files with 1 additions and 11 deletions
|
|
@ -397,7 +397,7 @@ def Download(request, file_name):
|
|||
|
||||
|
||||
def pdf_view(request):
|
||||
with open(settings.MEDIA_ROOT + '/media/EDS_Calendrier_2017.pdf', 'r') as pdf:
|
||||
with open(settings.MEDIA_ROOT + 'media/EDS_Calendrier_2017.pdf', 'r') as pdf:
|
||||
response = HttpResponse(pdf.read().decode('latin-1') , content_type='application/pdf')
|
||||
response['Content-Disposition'] = 'inline;filename=some_file.pdf'
|
||||
return response
|
||||
|
|
|
|||
|
|
@ -17,16 +17,6 @@
|
|||
<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}"
|
||||
data-admin-utc-offset="{% now "Z" %}">
|
||||
|
||||
<script>
|
||||
jQuery(document).ready(function(){
|
||||
tinymce.init({
|
||||
selector: 'textarea', // change this value according to your HTML
|
||||
body_class: 'tinymce'
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<!-- Container -->
|
||||
<div id="container">
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue