Sha256: 242fed0a3f43034c9fe40c556a8489a4cd31377a54de06e0ed8fa6a5b0ce54dc

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

<%#
# Rich Text Form Partial

This partial renders a trix-editor element for ActionText::RichText attributes.

## Local variables:

- `f`:
  A Rails form generator, used to help create the appropriate trix-editor fields.
- `field`:
  An instance of [Administrate::Field::RichText][1].
  A wrapper around the tmie attributes pulled from the model.

[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/RichText
%>

<div class="field-unit__label">
  <%= f.label field.attribute %>
</div>
<div class="field-unit__field">
  <%= f.rich_text_area(field.attribute) %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
administrate-1.0.0.beta3 app/views/fields/rich_text/_form.html.erb