Skip to content

Commit

Permalink
Merge pull request #33 from Spomsoree/redactor-default-value
Browse files Browse the repository at this point in the history
Use the default field option in the redactor field
  • Loading branch information
bobdenotter authored Nov 28, 2022
2 parents 2916200 + 7dc93b0 commit 8339aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/redactor.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

{% block field %}

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

{% endblock %}

0 comments on commit 8339aa4

Please sign in to comment.