summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-17 17:12:42 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-17 17:12:42 +0200
commitcf4c291a623f708043909cb6a489828908fcc32f (patch)
tree5203529f230153d2f53e0c368af892c53b2c3e6a
parent4169e8184a993b1b968e12f61c2b547fa8b16a18 (diff)
downloadChimère - projet Saclay-cf4c291a623f708043909cb6a489828908fcc32f.tar.bz2
Chimère - projet Saclay-cf4c291a623f708043909cb6a489828908fcc32f.zip
Manage new version of tinyMCE
-rw-r--r--local_settings.py.sample1
-rw-r--r--templates/chimere/edit.html12
2 files changed, 8 insertions, 5 deletions
diff --git a/local_settings.py.sample b/local_settings.py.sample
index b951b1f..d6a95b9 100644
--- a/local_settings.py.sample
+++ b/local_settings.py.sample
@@ -5,6 +5,7 @@
SECRET_KEY = ""
ALLOWED_HOSTS = []
+ENABLE_TINYMCE = True
DATABASES = {
'default': {
diff --git a/templates/chimere/edit.html b/templates/chimere/edit.html
index 5c564c3..8611073 100644
--- a/templates/chimere/edit.html
+++ b/templates/chimere/edit.html
@@ -1,4 +1,4 @@
-{% load i18n chimere_tags adminmedia inline_formset%}
+{% load i18n chimere_tags inline_formset%}
{% if submited %}{% submited %}{% endif %}
<div class='edit'>
{% if event %}<h3>{% trans "Add an event" %}</h3>
@@ -136,12 +136,14 @@ Les évènements à caractère politique, confessionnel ainsi que ceux relevant
$(function(){
tinyMCE.init({
mode : "textareas",
- theme : "advanced",
+ theme: 'modern',
editor_selector : "mceEditor",
relative_urls : false,
- theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,bullist,numlist,separator,hr,separator,link",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : ""
+ toolbar_items_size: 'small',
+ menubar: '',
+ toolbar1: 'bold italic,underline | bullist,numlist',
+ toolbar2: "",
+ toolbar3: ""
});
{% if route and itinerary_form %}