%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal, full_width: true do %>
<%= content_tag 'trix-editor',
class: 'trix-content',
data: {
"trix-field-target": "editor",
**@field.get_html(:data, view: view, element: :input)
},
input: trix_id,
placeholder: @field.placeholder do %>
<%== @field.value %>
<% end %>
<%= @form.text_area @field.id,
class: classes("w-full hidden"),
data: @field.get_html(:data, view: view, element: :input),
disabled: @field.readonly,
id: trix_id,
placeholder: @field.placeholder,
style: @field.get_html(:style, view: view, element: :input)
%>
<% end %>