Sha256: 8b6bb91b8776bb11de256d015153bbbe96a01205535b05cb3b255ea0bb672c70
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
<%# # SimpleMarkdown Form Partial This partial renders a WYSIWYG text area to help writing Markdown text ## Local variables: - `f`: A Rails form generator, used to help create the appropriate input fields. - `field`: An instance of Administrate::Field::SimpleMarkdown. %> <div class="field-unit__label"> <%= f.label field.attribute %> </div> <div class="field-unit__field simple_markdown"> <%= f.text_area field.attribute %> </div> <%= content_for :javascript do %> <script type="text/javascript"> $(function() { new SimpleMDE({ element: document.getElementById('<%= field.html_id %>') }); }); </script> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
administrate-field-simple_markdown-0.4.0 | app/views/fields/simple_markdown/_form.html.erb |