From 25b81140fac72ddffbedc17e733fabf06d5051fb Mon Sep 17 00:00:00 2001
From: Étienne Loks
Date: Mon, 1 Oct 2012 13:07:29 +0200
Subject: TinyMCE: allow external images
---
chimere/static/chimere/js/textareas.js | 2 +-
chimere/templates/chimere/blocks/welcome.html | 4 ++--
chimere/templates/chimere/detail.html | 4 ++--
chimere/templates/chimere/feeds/rss_descr.html | 4 ++--
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/chimere/static/chimere/js/textareas.js b/chimere/static/chimere/js/textareas.js
index 048718d..e15e7f2 100644
--- a/chimere/static/chimere/js/textareas.js
+++ b/chimere/static/chimere/js/textareas.js
@@ -22,7 +22,7 @@ tinyMCE.init({
theme : "advanced",
editor_selector : "mceEditor",
relative_urls : false,
- theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,bullist,numlist,separator,hr,separator,link",
+ theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,bullist,numlist,separator,hr,separator,link,image",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : ""
});
diff --git a/chimere/templates/chimere/blocks/welcome.html b/chimere/templates/chimere/blocks/welcome.html
index 95ad1ac..72d37b3 100644
--- a/chimere/templates/chimere/blocks/welcome.html
+++ b/chimere/templates/chimere/blocks/welcome.html
@@ -39,10 +39,10 @@ $(function(){
{%endif%}
{% if news.description %}
- {{news.description|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td th tr"|safe}}
+ {{news.description|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td th tr"|safe}}
{% endif %}
{% for property in news.getProperties %}
- {{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td th tr"|safe }}
+ {{ property.value|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td th tr"|safe }}
{% endfor %}
{% trans "See it on the map"%}
{% endif %}
diff --git a/chimere/templates/chimere/detail.html b/chimere/templates/chimere/detail.html
index 95e6a70..5bd9841 100644
--- a/chimere/templates/chimere/detail.html
+++ b/chimere/templates/chimere/detail.html
@@ -17,10 +17,10 @@
{% if marker.end_date %} - {{marker.end_date|date:"D d M Y"}}
{% endif %}
{% endif %}
{% if marker.description %}
- {{ marker.description|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}
+ {{ marker.description|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}
{% endif %}
{% for property in marker.getProperties %}
- {{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}
+ {{ property.value|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}
{% endfor %}
{% if marker.multimedia_items %}
{% trans "Show multimedia gallery" %}
diff --git a/chimere/templates/chimere/feeds/rss_descr.html b/chimere/templates/chimere/feeds/rss_descr.html
index 48f72df..b157c56 100644
--- a/chimere/templates/chimere/feeds/rss_descr.html
+++ b/chimere/templates/chimere/feeds/rss_descr.html
@@ -3,9 +3,9 @@
{% for picture in obj.pictures.all %}

{% endfor %}
-{% if obj.description %}- {% trans "Description:" %} {{ obj.description|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4"|safe }}
{% endif %}
+{% if obj.description %}- {% trans "Description:" %} {{ obj.description|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4"|safe }}
{% endif %}
{% for property in obj.getProperties %}
-{% if property.value %}- {{property.propertymodel.name}}{% trans ":"%} {{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4"|safe }}
{% endif %}
+{% if property.value %}- {{property.propertymodel.name}}{% trans ":"%} {{ property.value|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4"|safe }}
{% endif %}
{% endfor %}
--
cgit v1.2.3