Sha256: ecc62ec046d43e94e4bdf249f1c1fd65ca81d41a8b55316ac8938d3453f6d22c

Contents?: true

Size: 1.2 KB

Versions: 31

Compression:

Stored size: 1.2 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"
  >
    <% trix_id = "trix_#{@resource.name.underscore}_#{@field.id}" %>
    <trix-editor data-trix-field-target="editor" input="<%= trix_id %>" placeholder="<%= @field.placeholder %>"><%== @field.value %></trix-editor>
    <%= @form.text_area @field.id,
      id: trix_id,
      class: helpers.input_classes('w-full hidden', has_error: (@resource.model.present? and @resource.model.errors.include?(@field.id))),
      placeholder: @field.placeholder,
      disabled: @field.readonly
    %>
  </div>
<% end %>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
avo-2.7.1.pre.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.7.0 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.6.1.pre.2 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.6.1.pre.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.6.0 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.5.2.pre.7 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.5.2.pre.6 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.5.2.pre.5 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.5.2.pre.4 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.5.2.pre.3 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.5.2.pre.2 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.5.2.pre.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.5.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.5.0 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.4.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.4.0 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.3.1.pre.6 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.3.1.pre.5 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.3.1.pre.4 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.3.1.pre.3 app/components/avo/fields/trix_field/edit_component.html.erb