#NEWLINE# def editor_attributes( self , image , alt_text ) : #NEWLINE# #INDENT# '\n        Return string of additional attributes to go on the HTML element\n        when outputting this image within a rich text editor field\n        ' #NEWLINE# return ( 'data-embedtype="image" data-id="%d" data-format="%s" data-alt="%s" ' % ( image . id , self . name , alt_text ) )