This is what I used in my application as an example.

Add the following to your setup.py under install requires list.  
    "tw2.tinymce",
Run python setup.py development to install.

In my form.py :


import tw2.tinymce as TM
>
>
class TinyMCE(TM.TinyMCEWidget):
>     # Provide default parameters, value, etc... here
>     # default = <some-default-value>
>     pass
>
>  

>  
>
> class Edit_Page(EditableForm):
>     """ 
>     Form to edit page
>     """
>      
>     __model__                  = Agenda_Item
>     __check_if_unique__    = True
>     __require_fields__       = ['title', 'text',]
>     __limit_fields__           = [ 'title', 'text','author' ]
>     __field_order__           = ['author','title', 'text']
>     # overide field attributes
>     text      = TinyMCE
>     
> edit_page = Edit_Page(DBSession)
>
>
The above worked nicely in my form and parameters can be added to control 
what is available to the editor.  See TinyMCE <http://www.tinymce.com>


On Saturday, February 16, 2013 10:22:48 PM UTC-6, Herc Casiple wrote:
>
> How can i implement TINY MCE in Turbogears 2.0? I am using a Mak file for 
> my display. Is it possible?
>
>
> Newbie in Tg2. Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to