app/soc/views/helper/widgets.py
changeset 1241 5e25cd6abe09
parent 1228 b24796279fb9
child 1274 5f87d9807b77
--- a/app/soc/views/helper/widgets.py	Sat Feb 07 20:39:08 2009 +0000
+++ b/app/soc/views/helper/widgets.py	Sat Feb 07 20:40:48 2009 +0000
@@ -62,10 +62,24 @@
     {% endblock %}
   """ 
 
+  features1 = ("bold,italic,underline,strikethrough,|,"
+               "forecolor,backcolor,blockquote,|"
+              ",justifyleft,justifycenter,justifyright,justifyfull,|,"
+              "fontselect, fontsizeselect,formatselect")
+
+  features2 = ("newdocument,|,bullist,numlist,|,outdent,indent,|,undo,redo,|"
+      ",link,unlink,anchor,image,cleanup,help,code,hr,removeformat,visualaid,|,"
+      "sub,sup,|,charmap,"
+      "")
+
   DEF_MCE_SETTINGS = {'mode': "exact",
-                      'theme': "simple",
+                      'theme': "advanced",
+                      'theme_advanced_buttons1': features1,
+                      'theme_advanced_buttons2': features2,
+                      'theme_advanced_buttons3': '',
                       'theme_advanced_toolbar_location': "top",
-                      'theme_advanced_toolbar_align': "center"}
+                      'theme_advanced_toolbar_align': "left"}
+
 
   TINY_MCE_HTML_FMT = u'''\
 <textarea %(attrs)s>%(value)s</textarea>