On 10/2/06, Sanjay <[EMAIL PROTECTED]> wrote:
>
> > TinyMCE (http://tinymce.moxiecode.com/) has been wrapped in a TG
> > widget (http://cheeseshop.python.org/pypi/TurboTinyMCE/1.0.3).
>
> Thanks for the info on the great widget! However, while using it, I get
> only a textarea without any buttons. Being a beginner, not succeeding
> in troubleshooting. Any sample code on how to use it will be of vital
> help. A tiny tutorial, exploring various options (can be posted in the
> documentation or wiki), will be really great!
Untested, but the below should be enough to work:
from turbogears.widgets import *
from tinymce import TinyMCE
class EditorForm(WidgetsList):
title = TextField()
body = TinyMCE()
editor_form = TableForm(fields=EditorForm(), action="/save")
Ed
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---