Skip to content

Commit 8339aa4

Browse files
authored
Merge pull request #33 from Spomsoree/redactor-default-value
Use the default field option in the redactor field
2 parents 2916200 + 7dc93b0 commit 8339aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/redactor.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
{% block field %}
44

5-
<textarea type="text" name="{{ name }}" id="{{ id }}" class="redactor-field d-none">{{ value }}</textarea>
5+
<textarea name="{{ name }}" id="{{ id }}" class="redactor-field d-none">{{ value|default(field.definition.get('default')) }}</textarea>
66

77
{% endblock %}

0 commit comments

Comments
 (0)