diff --git a/wagtail/admin/rich_text/converters/contentstate.py b/wagtail/admin/rich_text/converters/contentstate.py index 6c125c0986..8db500aa75 100644 --- a/wagtail/admin/rich_text/converters/contentstate.py +++ b/wagtail/admin/rich_text/converters/contentstate.py @@ -85,8 +85,8 @@ class ContentstateConverter(): self.html_to_contentstate_handler.feed(html) if not self.html_to_contentstate_handler.contentstate.blocks: - # add an empty paragraph block to make contentstate valid - self.html_to_contentstate_handler.add_block(Block('unstyled', depth=0)) + # Draftail does not accept an empty block list as valid, but does accept 'null' as meaning "no content" + return 'null' return self.html_to_contentstate_handler.contentstate.as_json(indent=4, separators=(',', ': '))