From 7de8b01bfdd418db70a1d00f8fa2fe3ee7d03efc Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Fri, 11 Mar 2022 10:47:13 +0100 Subject: [PATCH] fix(textareafield): rich text and width in some configuration fields --- templates/field/textareafield.html.twig | 6 +++++- templates/pages/question.html.twig | 9 ++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/templates/field/textareafield.html.twig b/templates/field/textareafield.html.twig index 532dd14a6..c3ed75d04 100644 --- a/templates/field/textareafield.html.twig +++ b/templates/field/textareafield.html.twig @@ -42,10 +42,14 @@ {{ fields.nullField() }} - {{ fields.textField( + {{ fields.textareaField( 'default_values', item.fields['default_values'], __('Default values'), + { + 'full_width': true, + 'enable_richtext': true + } ) }} {% endblock %} diff --git a/templates/pages/question.html.twig b/templates/pages/question.html.twig index 885c2098f..c5bd5cf54 100644 --- a/templates/pages/question.html.twig +++ b/templates/pages/question.html.twig @@ -86,7 +86,14 @@ {% endblock %} {% if not (item.fields['fieldtype'] is null) %} - {{ fields.textareaField('description', item.fields['description'], __('Description'), {'full_width': true} ) }} + {{ fields.textareaField( + 'description', + item.fields['description'], + __('Description'), { + 'full_width': true, + 'enable_richtext': true + } + ) }} {% if question_params|length > 0 %} {% block questionParameters %}