Sha256: c9228d2f4c906fe3c5dfda7fb5e7d378cfaddaf74d22e99ae3d073432badee2f
Contents?: true
Size: 777 Bytes
Versions: 5
Compression:
Stored size: 777 Bytes
Contents
<%= content_tag :div, class: richtext_editor.css_classes, data: richtext_editor.data_attributes do %> <%= element_form.fields_for(:ingredients, richtext_editor.ingredient) do |f| %> <%= ingredient_label(richtext_editor, :value) %> <%- custom_tinymce_config = richtext_editor.custom_tinymce_config.inject({}) { |obj, (k, v)| obj[k.to_s.dasherize] = v.to_json; obj} %> <%= content_tag("alchemy-tinymce", custom_tinymce_config) do %> <%= f.text_area :value, minlength: richtext_editor.length_validation&.fetch(:minimum, nil), maxlength: richtext_editor.length_validation&.fetch(:maximum, nil), required: richtext_editor.presence_validation?, id: richtext_editor.form_field_id(:value) %> <% end %> <% end %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems