{# {% if field %}
<label class="m_label"  for="{{ field.name|raw }}">{{ __( field.title , constant('M_TD')) }}</label>
<section class="m_editor">
  <input type="hidden" name="{{ field.name|raw }}" value="{{value|raw}}">
  {% include 'm_components/form/editor.twig'%}
</section>
{% else %}
<label class="m_label"  for="{{ widget.get_field_id(label)|raw }}">{{ __( title_text , constant('M_TD')) }}</label>
<section class="m_editor">
  <input type="hidden" class="{{class}}" name="{{ widget.get_field_name(label)|raw }}" value="{{value|raw}}">
  {% include 'm_components/form/editor.twig'%}
</section>
{% endif %} #}




<label class="m_label"  for="{{ field.name|raw }}">{{ __( field.title , constant('M_TD')) }}</label>
<section class="m_editor_parent" data-id="{{widget.get_field_id(label)}}">

{% set args = {
  'media_buttons' : false,
  'quicktags' : true,
  'tinymce' : {
              "wpautop": true,
                    "plugins" : 'charmap colorpicker hr lists paste tabfocus textcolor wordpress wpautoresize wpeditimage wpemoji wpgallery wplink wptextpattern',
                    "toolbar1": 'formatselect,bold,italic,bullist,numlist,blockquote,alignleft,aligncenter,alignright,link,wp_more,spellchecker,wp_adv,listbuttons,wp_add_media',
                    "toolbar2": 'strikethrough,hr,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help',
                    "textarea_rows" : 20,
                    "wp_autoresize_on" : true,
                    "autoresize_min_height" : 100,
                    "autoresize_max_height" : 500,

   
  },

      
 } %}

  {{fn.wp_editor(fn.html_entity_decode(value|raw), field.name|raw, args)}}



</section>
{# Done #}