Sha256: 1ffd59bd41216d8658e42283cd8fb5bf48dfa3803526f16897b3cc8cfbc413a7
Contents?: true
Size: 922 Bytes
Versions: 30
Compression:
Stored size: 922 Bytes
Contents
<%= render Spina::Forms::GroupComponent.new(label: t("spina.#{plugin.namespace}.settings.#{attribute}")) do %> <%= render Spina::Forms::LabelComponent.new(f, attribute) %> <div class="mt-1 relative"> <%= f.hidden_field attribute, id: "#{f.object.object_id}_input" %> <div class="relative form-textarea p-4 pt-0 shadow-sm max-w-5xl" data-controller="trix" id="<%= "insert_#{f.object.object_id}_trix-toolbar" %>" data-action="media-picker:done->trix#insertAttachment"> <%= render Spina::Forms::TrixToolbarComponent.new("#{f.object.object_id}_trix-toolbar") %> <trix-editor class="prose prose-sm focus:outline-none max-w-3xl xl:border-r border-dashed border-gray-200 pr-3" toolbar="<%= f.object.object_id %>_trix-toolbar" input="<%= f.object.object_id %>_input" data-trix-target="editor" data-action="trix-file-accept->trix#preventDefault"></trix-editor> </div> </div> <% end %>
Version data entries
30 entries across 30 versions & 1 rubygems