{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #} {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #} {% if ea.crud.currentAction == 'detail' %} {# TODO: improve this to highlight code #} {% set configuredHeight = field.customOptions.get('height') %}
{{- field.value -}}
{% else %}
{% set html_id = 'ea-code-editor-' ~ field.uniqueId %}
{{ 'field.code_editor.view_code'|trans([], domain = 'EasyAdminBundle') }}
{% endif %}