Sha256: 7d130b95f4f58bdcf5436358792d2e95b2b0db2329531129e15a81ae4795883f

Contents?: true

Size: 987 Bytes

Versions: 23

Compression:

Stored size: 987 Bytes

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_class.model_name.route_key %>"
    data-resource-id="<%= @resource.model.id %>"
    data-attachments-disabled="<%= @field.attachments_disabled %>"
    data-attachment-key="<%= @field.attachment_key %>"
  >
    <% 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

23 entries across 23 versions & 1 rubygems

Version Path
avo-1.7.2 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.7.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.7.0 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.6.4.pre.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.6.3.pre.3 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.6.3.pre.2 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.6.3.pre.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.6.2.pre.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.6.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.6.0 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.5.5 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.5.4 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.5.3 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.5.2 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.5.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.5.0 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.4.5.pre.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.4.4.pre.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.4.4 app/components/avo/fields/trix_field/edit_component.html.erb
avo-1.4.3 app/components/avo/fields/trix_field/edit_component.html.erb