{% comment %}
Template for JSON editor widget with copy button.
Extends django-json-widget's JSONEditorWidget with copy button.
{% endcomment %}
{# Render the JSONEditor container #}
{% with script_id=widget.name|add:"_data" %}
{{ widget.value|json_script:script_id }}
{% endwith %}
{% if widget.show_copy_button %}
{# The glyph is a span: .button sets the text font and would win over .cfg-icon on the same element #}
{% endif %}