КОНТРОЛЫ/contenteditable.md


Исходный код

Twig код

{% set controls_class_name = controls_class_name ? controls_class_name : 'js-control-contenteditable' %}

<div class="{{ controls_class_name }} control-contenteditable {{ class_name }}">
  <div class="js-control-contenteditable-clearer control-contenteditable__clearer">
    {% block clearer %}{% endblock %}
  </div>

  {% block before_text %}{% endblock %}

  <input type="hidden" class="js-control-contenteditable-input {{ input_class_name }}" name="{{name}}" value="{{ value }}">

  <div {% if editable_id %}id="{{ editable_id }}"{% endif %} class="control-contenteditable__area {% if no_hint_transform %}control-contenteditable__area_no-hint-transform{% endif %} {{ editable_class_name }}" contenteditable="{{ not disabled }}" data-hint="{{ placeholder }}" {{ additional_data|raw }}>
    {{ value }}
  </div>
</div>

Ссылка на вики репозиторий