in blog | timonweb.com |
---|---|
original entry | How to remove 'rich-text' div from RichTextBlock template output in Wagtail CMS |
When Wagtail renders RichTextBlock
in a template, it by default wraps the contents of the block with the <div class="rich-text">
. The resulting markup may look like this:
<div class="rich-text">
<p>I'm a paragraph that's cold, so I'm wrapped up</p>
</ …