Skip to content

Commit

Permalink
Make all editor features work
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleason committed Nov 29, 2018
1 parent 60521e5 commit 77606ad
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions draftailmodal/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ class TipForm(forms.Form):
"""
Chooser form that appears in Draftail on the admin screen.
"""
tip_content = forms.CharField(widget=get_rich_text_editor_widget(
# features=['h2', 'h3', 'bold', 'italic', 'ol', 'ul', 'link', 'image', 'embed']
features=[]
))
tip_content = forms.CharField()
def __init__(self, *args, **kwargs):
super(TipForm, self).__init__(*args, **kwargs)
self.fields['tip_content'].widget=get_rich_text_editor_widget(
features=['h2', 'h3', 'bold', 'italic', 'ol', 'ul', 'link', 'image', 'embed']
)

0 comments on commit 77606ad

Please sign in to comment.