django-tinymce4-lite
django-tinymce4-lite copied to clipboard
Multiple Timymce toolbars settings
Hi,
Is there a way to setup mutiple settings? Leys say I want one tinyce settings (specially, the toolbar) for the admin section of my site and another for the public section (users).
Thanks.
I couldn’t find the reference in the docs, but this works:
class SomeModel(models.Model):
content = HTMLField(profile=dict_with_settings)
Hi!
Thanks for reply. Would it work when I set the widget from the ModelForm? Since I always use:
widgets = { 'message': TinyMCE() }
Ah in that case you’d need to pass the right param (I forget if it’s profile or mce_something) to the TinyMCE widget class.
Maybe mce_attrs?
EDIT: well, it just works with profile as well (when tested the first time didn't work, maybe a typo).
widgets = {'message': TinyMCE(profile=settings.TINYMCE_BASIC_CONFIG)}
So it this a doc issue, or should be closed?
This should be documented, I think.