From 27009fbaa393ee20b75b5f4786cc93310c4bd008 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 21 Sep 2020 11:58:06 +0200 Subject: [PATCH 1/2] Import richtext template from wagtail Import file from wagtail library with cp .../wagtail/core/templates/wagtailcore/shared/richtext.html \ .../mpicms//mpicms/templates/wagtailcore/shared/richtext/richtext.html --- mpicms/templates/wagtailcore/shared/richtext.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 mpicms/templates/wagtailcore/shared/richtext.html diff --git a/mpicms/templates/wagtailcore/shared/richtext.html b/mpicms/templates/wagtailcore/shared/richtext.html new file mode 100644 index 0000000..cd10e94 --- /dev/null +++ b/mpicms/templates/wagtailcore/shared/richtext.html @@ -0,0 +1 @@ +{{ html|safe }} \ No newline at end of file From af31b2faf5d0e564986fa10422736d5178f9d40a Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 21 Sep 2020 12:10:10 +0200 Subject: [PATCH 2/2] Add clear:both property after richtext streamfield 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. --- mpicms/templates/wagtailcore/shared/richtext.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mpicms/templates/wagtailcore/shared/richtext.html b/mpicms/templates/wagtailcore/shared/richtext.html index cd10e94..3722274 100644 --- a/mpicms/templates/wagtailcore/shared/richtext.html +++ b/mpicms/templates/wagtailcore/shared/richtext.html @@ -1 +1,2 @@ -{{ html|safe }} \ No newline at end of file +{{ html|safe }} +