If you don't want to have to replicate web2py's automatic id and name attribute generation, you should also be able to do something like:
def advanced_editor(field, value): return SQLFORM.widgets.text.widget(field, XML(value), _class='text ckeditor', _contenteditable='true', _toolbarStartupExpanded='false', _cols=80) Anthony On Thursday, January 16, 2014 2:59:24 AM UTC-5, Simon Ashley wrote: > > Just to save you a little bit of time: > > def advanced_editor(field, value): > return TEXTAREA(_id=str(field).replace('.', '_'), _name=field.name,_class > ='text ckeditor', > _contenteditable='true', _toolbarStartupExpanded= > 'false', value=XML(value), _cols=80) > > Field('description','text',widget=advanced_editor ), > > .....description.represent = lambda v, r: XML(v); > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.