darklow / django-suit-redactor

Imperavi Readactor (WYSIWYG editor) integration app for Django admin
26 stars 21 forks source link

editor_options and formatting #12

Open efe opened 7 years ago

efe commented 7 years ago

Hello,

I'm trying to add h5 and h6 formatting options, but it doesn't affect the editor.

# ModelForm
class Meta:
    model: Something
    widgets = {
        'content': RedactorWidget(editor_options={
            'lang': 'en',
            'iframe': True,             
            'formatting': ['p', 'blockquote', 'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']})
    }

Does django_suit_redactor support formatting in editor options?