On Sat, 2011-05-21 at 07:32 -0700, Boyi wrote:
> Creating theme is quite big for me to manage. However, using the same
> 'advanced' theme, I did manage to customize the buttons by modifying
> tinyMCE.init() in richtext.pt in deform***.egg. Using the approach, I
> could also using 3rd party skin like cirkuit at
> http://www.cirkuit.net/projects/tinymce/cirkuitSkin/. I did think this
> is not a clean way to do it. May be in the future deform could
> provided an option to input skin and other options to customize
> tinyMCE editor.

Just subclass the existing widget and provide it with a different
template.

http://docs.pylonsproject.org/projects/deform/dev/widget.html#writing-your-own-widget

- C


> 
> On May 20, 10:18 pm, Chris Withers <[email protected]> wrote:
> > On 19/05/2011 05:51, Boyi Shafie wrote:
> >
> > > Hi,
> > > Any body can suggest on how to customize tinyMCE using Deform. I use the
> > > 'advanced' editor. How do I create interface with deform widget using
> > > tinyMCE.init to include and add buttons. Or is there any other way around.
> >
> > I guess you need to create a TinyMCE theme (sorry, I don't know how to
> > do that) and then pass the theme name to the widget constructor:
> >
> > http://docs.pylonsproject.org/projects/deform/dev/api.html#deform.wid...
> >
> > cheers,
> >
> > Chris
> >
> > --
> > Simplistix - Content Management, Batch Processing & Python Consulting
> >             -http://www.simplistix.co.uk
> 


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to