Skip to content

Commit

Permalink
fix(textareafield): rich text and width in some configuration fields
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Mar 17, 2022
1 parent c997b0d commit 7de8b01
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion templates/field/textareafield.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down
9 changes: 8 additions & 1 deletion templates/pages/question.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 7de8b01

Please sign in to comment.