development Accounting schrieb:
> Has anyone managed to repackage WYM Editor
> (http://www.wymeditor.org/en/demo/) in a widget to use in turbogears?

This should be straightforward to do. You just need to wrap the two CSS
files from the examples in the distribution (i.e. screen.css and
styles.css) into CSSLink widgets, the jquery.wymeditor.pack.js file into
a JSLink widget and the JS code to initialize the editor into a JSSource
widget.

Then create a widget that inherits from turbogears.widgets.TextArea and
attach the CSS/JS widgets to it. Also import the third-party jquery
widget package [1] and attach the jquery widget as well. You shouldn't
need to change the widget template.

You can see examples of how to package JS/CSS into widgets and a
distribution by looking at the available widgets in the CogBin [2], for
example the jquery widget, or TGFirebugLite or TurboFancyFlash.

If you have further questions, feel free to ask them here on the list.

HTH, Chris


[1] http://pypi.python.org/pypi/jquery/
[2] http://www.turbogears.org/cogbin/

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to