Sha256: 82824ba016d190aefff6930b33a969634a855231f28053f7db85a047c983551f

Contents?: true

Size: 992 Bytes

Versions: 11

Compression:

Stored size: 992 Bytes

Contents

<div class="mt-6" data-controller="unique-id" data-unique-id="<%= f.object.object_id %>">
  <label class="block text-sm leading-5 font-medium text-gray-700"><%= f.object.title %></label>
  <div class="text-gray-400 text-sm"><%= f.object.hint %></div>
  <div class="mt-1 relative">
    <%= f.hidden_field :content, 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>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spina-2.15.1 app/views/spina/admin/parts/texts/_form.html.erb
spina-2.15.0 app/views/spina/admin/parts/texts/_form.html.erb
spina-2.14.0 app/views/spina/admin/parts/texts/_form.html.erb
spina-2.13.1 app/views/spina/admin/parts/texts/_form.html.erb
spina-2.13.0 app/views/spina/admin/parts/texts/_form.html.erb
spina-2.12.0 app/views/spina/admin/parts/texts/_form.html.erb
spina-2.11.0 app/views/spina/admin/parts/texts/_form.html.erb
spina-2.10.0 app/views/spina/admin/parts/texts/_form.html.erb
spina-2.9.1 app/views/spina/admin/parts/texts/_form.html.erb
spina-2.9.0 app/views/spina/admin/parts/texts/_form.html.erb
spina-2.8.1 app/views/spina/admin/parts/texts/_form.html.erb