summaryrefslogtreecommitdiffstats
path: root/askbot/forms.py
diff options
context:
space:
mode:
authorAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-08-29 14:19:35 -0600
committerAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-08-29 14:19:35 -0600
commit73daf2e633102594401295c353437f0de1a0e4d2 (patch)
tree5934a70a665923be22a8b5edfbc300e1dd24ac00 /askbot/forms.py
parentaff092d437f25dacf81747b8436a6f07d0ef902a (diff)
downloadaskbot-73daf2e633102594401295c353437f0de1a0e4d2.tar.gz
askbot-73daf2e633102594401295c353437f0de1a0e4d2.tar.bz2
askbot-73daf2e633102594401295c353437f0de1a0e4d2.zip
made tinymce work on the widgets
Diffstat (limited to 'askbot/forms.py')
-rw-r--r--askbot/forms.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/askbot/forms.py b/askbot/forms.py
index 0011210d..2711d9fa 100644
--- a/askbot/forms.py
+++ b/askbot/forms.py
@@ -900,7 +900,6 @@ class AskWidgetForm(forms.Form, FormWithHideableFields):
'''Simple form with just the title to ask a question'''
title = TitleField()
- text = EditorField()
ask_anonymously = forms.BooleanField(
label=_('ask anonymously'),
help_text=_(
@@ -915,7 +914,7 @@ class AskWidgetForm(forms.Form, FormWithHideableFields):
#hide ask_anonymously field
if not askbot_settings.ALLOW_ASK_ANONYMOUSLY:
self.hide_field('ask_anonymously')
-
+ self.fields['text'] = EditorField()
if not include_text:
self.hide_field('text')
self.fields['text'].required=False