#NEWLINE# def render( self , name , value , attrs = None ) : #NEWLINE# #INDENT# value = smart_text ( ( value or '' ) ) #NEWLINE# final_attrs = self . build_attrs ( attrs , name = value ) #NEWLINE# if ( 'class' in final_attrs ) : #NEWLINE# #INDENT# final_attrs [ 'class' ] += ' cp-wysiwyg-widget' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# final_attrs [ 'class' ] = 'cp-wysiwyg-widget' #NEWLINE# #UNINDENT# return mark_safe ( '<textarea{0}>{1}</textarea>' . format ( flatatt ( final_attrs ) , escape ( value ) ) )