summaryrefslogtreecommitdiff
path: root/main/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'main/widgets.py')
-rw-r--r--main/widgets.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/main/widgets.py b/main/widgets.py
index 8dc18ac..77d7c72 100644
--- a/main/widgets.py
+++ b/main/widgets.py
@@ -51,6 +51,14 @@ def getMapJS():
""" % js
return js
+class TextareaWidget(forms.Textarea):
+ """
+ Manage the edition of a text using TinyMCE
+ """
+ class Media:
+ js = ["%stiny_mce.js" % settings.TINYMCE_URL,
+ "%stextareas.js" % settings.MEDIA_URL,]
+
class PointChooserWidget(forms.TextInput):
"""
Manage the edition of point on a map
@@ -275,4 +283,4 @@ class AreaField(forms.MultiValueField):
def compress(self, data_list):
if not data_list:
return None
- return data_list \ No newline at end of file
+ return data_list