Reputation: 2114
I want to limit the formatting options for the wagtail.wagtailcore.fields.RichTextField field. For example, how to limit the user so that he can only use bold, paragraph and links in the RichTextField. I found examples for extending the editor, but not for limiting.
Upvotes: 1
Views: 385
Reputation: 521
You can limit options for RichTextField in wagtail by using keyword features as follows.
body = RichTextField(features=['bold','link'])
The list of all the available features are as follows:
Example and detail description can be found in it's official site.
Upvotes: 0