File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
project_styleguide/templates/patterns/molecules/streamfield/blocks Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -841,7 +841,7 @@ class Meta:
841841
842842class PromoBlock (blocks .StructBlock ):
843843 title = blocks .TextBlock ()
844- description = blocks .TextBlock ( )
844+ description = blocks .RichTextBlock ( features = settings . NO_HEADING_RICH_TEXT_FEATURES )
845845 image = CustomImageChooserBlock ()
846846 button_text = blocks .CharBlock (max_length = 55 )
847847 button_link = blocks .StreamBlock (
Original file line number Diff line number Diff line change 1- {% load wagtailimages_tags %}
1+ {% load wagtailcore_tags wagtailimages_tags %}
22
33< div class ="grid__promo promo-block ">
44 < div class ="promo-block__content ">
55 {% include "patterns/atoms/section-title/section-title.html" with title=value.title classes="promo-block__title" %}
6- < p class ="promo-block__description "> {{ value.description|linebreaksbr }}</ p >
6+ < div class ="rich-text promo-block__description "> {{ value.description|richtext }}</ div >
77 {% if value.button_text %}
88 < a href ="{{ value.get_button_link }} " class ="button promo-block__button "> {{ value.button_text }}</ a >
99 {% endif %}
You can’t perform that action at this time.
0 commit comments