Sha256: 3794f3dde9f92edd1c234552d1109886ab48e08633bfa0a18fd547e8bea4e919
Contents?: true
Size: 698 Bytes
Versions: 3
Compression:
Stored size: 698 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('<%= f.object.class.name.underscore %>_<%= field.attribute %>') }); }); </script> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems