Make org description use TinyMCE
Also clean it as well as the contrib_template with the new cleaner.
Patch by: Sverre Rabbelier
--- a/app/soc/views/models/organization.py Thu Mar 05 22:30:06 2009 +0000
+++ b/app/soc/views/models/organization.py Thu Mar 05 22:30:37 2009 +0000
@@ -117,9 +117,14 @@
new_params['create_extra_dynaproperties'] = {
'scope_path': forms.CharField(widget=forms.HiddenInput,
required=True),
+ 'description': forms.fields.CharField(
+ widget=helper.widgets.FullTinyMCE(
+ attrs={'rows': 25, 'cols': 100})),
'contrib_template': forms.fields.CharField(
widget=helper.widgets.FullTinyMCE(
attrs={'rows': 25, 'cols': 100})),
+ 'clean_description': cleaning.clean_html_content('description'),
+ 'clean_contrib_template': cleaning.clean_html_content('contrib_template'),
'clean_ideas': cleaning.clean_url('ideas'),
'clean': cleaning.validate_new_group('link_id', 'scope_path',
soc.logic.models.organization, org_app_logic)