Sha256: 660084fa3769e8708ad87fbc68c736d1f4a6596e94d4d898d9ca666eaed8cfe2
Contents?: true
Size: 1.32 KB
Versions: 27
Compression:
Stored size: 1.32 KB
Contents
<%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal, full_width: true do %> <div data-controller="trix-field" data-trix-field-target="controller" data-resource-name="<%= @resource.model_key %>" data-resource-id="<%= @resource.model.id %>" data-attachments-disabled="<%= @field.attachments_disabled %>" data-attachment-key="<%= @field.attachment_key %>" data-hide-attachment-filename="<%= @field.hide_attachment_filename %>" data-hide-attachment-filesize="<%= @field.hide_attachment_filesize %>" data-hide-attachment-url="<%= @field.hide_attachment_url %>" class="relative block overflow-x-auto max-w-full" > <%= 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.is_readonly?, id: trix_id, placeholder: @field.placeholder, style: @field.get_html(:style, view: view, element: :input) %> </div> <% end %>
Version data entries
27 entries across 27 versions & 1 rubygems