Add options to tinymce

11 views
Skip to first unread message

kaesh...@gmail.com

unread,
Jan 4, 2014, 12:32:59 PM1/4/14
to nive...@googlegroups.com
Hi,

Is there a possibility to customize the call to tinymce for a page element ? Maybe by changing the template richtext.pt ?

Thanks

Arndt Droullier

unread,
Jan 7, 2014, 9:35:39 AM1/7/14
to nive...@googlegroups.com
I have always been struggling with this one too...
Up to now the only way was to replace the richtext template or the widget renderer.

New option (added with the last commit):
The individual field configuration can be extended with tiny mce options.

e.g. nive_cms/text.py could be changed from 

configuration.data = [
    FieldConf(id="textblock", datatype="htext", size=100000, default=u"", name=_(u"Text"), fulltext=True, description=u""),
]

to 

configuration.data = [
    FieldConf(id="textblock", datatype="htext", size=100000, default=u"", name=_(u"Text"), fulltext=True,
                   settings={"options": {"mode":"exact", "height": "400", "width": "100%"}}),
]

The result is a minimal tiny mce. ('options' take any tiny mce configuration option)

Arndt.



2014/1/4 <kaesh...@gmail.com>
Hi,

Is there a possibility to customize the call to tinymce for a page element ? Maybe by changing the template richtext.pt ?

Thanks

--
You received this message because you are subscribed to the Google Groups "nive-cms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nive-cms+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
----------------------------------------------------------------------------------------------
Arndt Droullier, Nive GmbH, Köln, Germany
Nive Web Application Publishing: < New Prototype > www.nive.co
Nive Open Source Cms: cms.nive.co

Arndt Droullier

unread,
Jan 7, 2014, 9:39:09 AM1/7/14
to nive...@googlegroups.com

kaesh...@gmail.com

unread,
Jan 12, 2014, 1:42:15 PM1/12/14
to nive...@googlegroups.com


Le mardi 7 janvier 2014 15:39:09 UTC+1, Arndt Droullier a écrit :
 
Thanks, it's fine like that.

 
Reply all
Reply to author
Forward
0 new messages