1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-06 14:16:46 +02:00

V2.17.4 fix empty paragraph in twig formbuilder

This commit is contained in:
trendschau
2025-06-13 21:34:07 +02:00
parent 8392bd445b
commit 349159f58d

View File

@@ -39,9 +39,13 @@
<textarea id="{{ itemName }}[{{ field.name }}]" name="{{ itemName }}[{{ field.name }}]"{{field.getAttributeValues() }}{{ field.getAttributes() }}>{{ field.getContent() }}</textarea>
{% elseif (field.type == 'paragraph') and (field.getContent() != '') %}
{% elseif (field.type == 'paragraph') %}
{% if (field.getContent() != '') %}
{{ markdown(field.getContent()) }}
{{ markdown(field.getContent()) }}
{% endif %}
{% elseif field.type == 'checkbox' %}