Skip to content

Commit

Permalink
permits to add extra html to textarea fields
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagh authored and trasher committed Mar 2, 2022
1 parent 0bcba6c commit 9e5ec40
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/components/form/fields_macros.html.twig
Expand Up @@ -234,7 +234,12 @@
{% endset %}
{% endif %}

{% set options = options|merge({'add_field_html': add_html}) %}
{% if add_html != '' %}
{% if options.add_field_html is defined %}
{% set add_html = add_html ~ options.add_field_html %}
{% endif %}
{% set options = options|merge({'add_field_html': add_html}) %}
{% endif %}

{{ _self.field(name, field, label, options) }}
{% if options.enable_mentions and config('use_notifications') %}
Expand Down

0 comments on commit 9e5ec40

Please sign in to comment.