Sha256: f28d392ce27a82d7c95fee09335a996087b746d367ed12c0e3a9e874a05c01eb

Contents?: true

Size: 1.15 KB

Versions: 33

Compression:

Stored size: 1.15 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 %>"
  >
    <% 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

33 entries across 33 versions & 1 rubygems

Version Path
avo-1.25.2 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.25.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.25.0 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.24.2 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.24.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.24.0 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.23.0 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.22.4 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.22.3 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.22.2 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.22.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.22.1.pre.2 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.22.1.pre.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.22.0 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.22.0.pre.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.21.1.pre.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.21.0 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.20.2.pre.2 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.20.2.pre.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.21.0.pre.1 app/components/avo/fields/trix_field/edit_component.html.erb