mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-04 21:44:44 +00:00
No need to explicitly pass None to EditorHTMLConverter when using default features
This commit is contained in:
parent
96eab7937c
commit
4fe6104098
1 changed files with 2 additions and 3 deletions
|
|
@ -89,9 +89,8 @@ class HalloRichTextArea(WidgetWithScript, widgets.Textarea):
|
|||
self.features = kwargs.pop('features', None)
|
||||
if self.features is None:
|
||||
self.features = features.get_default_features()
|
||||
self.converter = EditorHTMLConverter()
|
||||
else:
|
||||
self.converter = EditorHTMLConverter(self.features)
|
||||
|
||||
self.converter = EditorHTMLConverter(self.features)
|
||||
|
||||
# construct a list of plugin objects, by querying the feature registry
|
||||
# and keeping the non-null responses from get_editor_plugin
|
||||
|
|
|
|||
Loading…
Reference in a new issue