Changes between Version 6 and Version 7 of CustomWidgetsTinyMCE
- Timestamp:
- Feb 28, 2008, 2:38:04 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CustomWidgetsTinyMCE
v6 v7 14 14 from django.utils.html import escape 15 15 from django.utils.simplejson import * 16 from django.utils.safestring import mark_safe 16 17 17 18 class TinyMCE(Textarea): … … 42 43 mce_json = JSONEncoder().encode(self.mce_settings) 43 44 44 return u'<textarea%s>%s</textarea> <script type="text/javascript">\45 tinyMCE.init(%s)</script>' % (flatatt(final_attrs), escape(value), mce_json) 45 return mark_safe(u'<textarea%s>%s</textarea> <script type="text/javascript">\ 46 tinyMCE.init(%s)</script>' % (flatatt(final_attrs), escape(value), mce_json)) 46 47 }}} 47 48