# HG changeset patch # User Pawel Solyga # Date 1222779599 0 # Node ID ec26682053df082794a649a06f2a7135bb07a1bd # Parent d05444cf464166794af40f4a7f584ae56887a7b8 Made mce_settings class variable in TinyMCE widget a copy of default settings instead of reference. diff -r d05444cf4641 -r ec26682053df app/soc/views/helpers/custom_widgets.py --- a/app/soc/views/helpers/custom_widgets.py Tue Sep 30 12:47:05 2008 +0000 +++ b/app/soc/views/helpers/custom_widgets.py Tue Sep 30 12:59:59 2008 +0000 @@ -49,7 +49,7 @@ 'theme_advanced_toolbar_location': "top", 'theme_advanced_toolbar_align': "center"} - mce_settings = DEF_MCE_SETTINGS + mce_settings = DEF_MCE_SETTINGS.copy() TINY_MCE_HTML_FMT = u'''\ @@ -64,7 +64,7 @@ value = '' value = smart_unicode(value) final_attrs = self.build_attrs(attrs, name=name) - + self.mce_settings['elements'] = "id_%s" % name # convert mce_settings from dict to JSON