Code

Changes between Version 6 and Version 7 of CustomWidgetsTinyMCE


Ignore:
Timestamp:
02/28/08 12:38:04 (6 years ago)
Author:
anonymous
Comment:

added mark_safe for render output

Legend:

Unmodified
Added
Removed
Modified
  • CustomWidgetsTinyMCE

    v6 v7  
    1414from django.utils.html import escape 
    1515from django.utils.simplejson import * 
     16from django.utils.safestring import mark_safe 
    1617         
    1718class TinyMCE(Textarea): 
     
    4243        mce_json = JSONEncoder().encode(self.mce_settings) 
    4344         
    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)) 
    4647}}} 
    4748