{% if templateData.tags|length > 0 %} {% set tagsIdArr = templateData.tags_id|split(',') %} {% set tagsValueArr = templateData.tags|split('|') %} {% for key, tag in tagsValueArr -%} {#- the key allows to get the id stored in tagsIdArr -#} {{- tag|raw -}} {%- endfor -%} {% endif %}
{# the id begins with an 'e' because of this https://github.com/tinymce/tinymce/issues/3011#issuecomment-227993762 #}
{% set mode = 'edit-template' %} {% include 'steps-links-edit.html' %} {% include 'json-editor.html' %}