@override_settings(WAGTAILADMIN_RICH_TEXT_EDITORS={'default': {'WIDGET': 'wagtail.wagtailadmin.rich_text.HalloRichTextArea'}, 'custom': {'WIDGET': 'wagtail.tests.testapp.rich_text.CustomRichTextArea'}})
def test_custom_editor_with_default(self):
    self.assertIsInstance(get_rich_text_editor_widget(), HalloRichTextArea)
    self.assertIsInstance(get_rich_text_editor_widget('custom'), CustomRichTextArea)
@override_settings(WAGTAILADMIN_RICH_TEXT_EDITORS={'default': {'WIDGET': 'wagtail.wagtailadmin.rich_text.HalloRichTextArea'}, 'custom': {'WIDGET': 'wagtail.tests.testapp.rich_text.CustomRichTextArea'}})
def test_custom_editor_with_default(self):
    self.assertIsInstance(get_rich_text_editor_widget(), HalloRichTextArea)
    self.assertIsInstance(get_rich_text_editor_widget('custom'), CustomRichTextArea)