Sha256: e22fbb9fddc9d43a198e6d72ac42fb8a7e40413f219e3d1ef65ebbf841f59646
Contents?: true
Size: 929 Bytes
Versions: 36
Compression:
Stored size: 929 Bytes
Contents
<%= field_wrapper **field_wrapper_args do %> <%= content_tag :div, class: "relative block overflow-x-auto max-w-4xl", data: { controller: "trix-field", trix_field_target: "controller", **data_values, } 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 %> <%= sanitize @field.value.to_s %> <% end %> <%= @form.text_area @field.id, value: @field.value.try(:to_trix_html) || @field.value, 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
36 entries across 36 versions & 1 rubygems