Sha256: 7f289bd3c2f155bb4a4b63c6f6b72443ff8d4955b95d6825dd2f8638253849a1

Contents?: true

Size: 1.18 KB

Versions: 57

Compression:

Stored size: 1.18 KB

Contents

<%= field_wrapper **field_wrapper_args, full_width: true do %>
  <%= content_tag :div,
    class: "relative block overflow-x-auto max-w-full",
    data: {
      controller: "trix-field",
      trix_field_target: "controller",
      resource_name: resource_name,
      resource_id: resource_id,
      attachments_disabled: @field.attachments_disabled,
      attachment_key: @field.attachment_key,
      hide_attachment_filename: @field.hide_attachment_filename,
      hide_attachment_filesize: @field.hide_attachment_filesize,
      hide_attachment_url: @field.hide_attachment_url,
    } 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: disabled?,
      id: trix_id,
      placeholder: @field.placeholder,
      style: @field.get_html(:style, view: view, element: :input)
    %>
  <% end %>
<% end %>

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
avo-3.0.0.pre12 app/components/avo/fields/trix_field/edit_component.html.erb
avo-3.0.0.pre10 app/components/avo/fields/trix_field/edit_component.html.erb
avo-3.0.0.pre11 app/components/avo/fields/trix_field/edit_component.html.erb
avo-3.0.0.pre8 app/components/avo/fields/trix_field/edit_component.html.erb
avo-3.0.0.pre9 app/components/avo/fields/trix_field/edit_component.html.erb
avo-3.0.0.pre7 app/components/avo/fields/trix_field/edit_component.html.erb
avo-3.0.0.pre5 app/components/avo/fields/trix_field/edit_component.html.erb
avo-3.0.0.pre6 app/components/avo/fields/trix_field/edit_component.html.erb
avo-3.0.0.pre4 app/components/avo/fields/trix_field/edit_component.html.erb
avo-3.0.0.pre3 app/components/avo/fields/trix_field/edit_component.html.erb
avo-3.0.0.pre2 app/components/avo/fields/trix_field/edit_component.html.erb
avo-3.0.0.pre1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.33.2 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.33.1 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.33.0 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.32.6 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.32.5 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.32.4 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.32.3 app/components/avo/fields/trix_field/edit_component.html.erb
avo-2.32.2 app/components/avo/fields/trix_field/edit_component.html.erb