Skip to content

Commit

Permalink
Add clear:both property after richtext streamfield
Browse files Browse the repository at this point in the history
Clear floats after each streamfield block, so that content
from the next block doesn't fill free space besides floating
images of the previous block.

This allows the editor to seperate text, which should appear
besides an image, from following text by just starting a new
streamfield block.
  • Loading branch information
donald committed Sep 21, 2020
1 parent 27009fb commit af31b2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mpicms/templates/wagtailcore/shared/richtext.html
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
{{ html|safe }}
{{ html|safe }}
<div style="clear: both"></div>

0 comments on commit af31b2f

Please sign in to comment.