<%= content_tag :div, class: local_assigns[:class] do %>  
<div class="trix__field">
  
  <%- trix_id = f.object.new_record? ? (local_assigns[:tmp_id] ? "#{dom_id(f.object, attr)}_#{local_assigns[:tmp_id]}" :  
                                          "#{attr}_new_#{model_name_from_record_or_class(f.object).param_key.pluralize}" ) :
                                       dom_id(f.object, attr) -%>  
    
  <%= f.label attr, local_assigns[:label], for: nil unless local_assigns[:skip_label] %>                                       
  
  <%= f.hidden_field attr, id: trix_id %>  
  <trix-editor input="<%= trix_id %>"></trix-editor>
</div>
<%- end -%>