Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%= simple_form_for(@article) do |f| %>
- <%= f.error_notification %>
- <div class="form-inputs">
- <%= f.input :article %>
- <div class="form-group">
- <%= f.input :article_body, input_html: { class: 'summernote' } %>
- </div>
- <%= f.input :status, collection: enum_option_pairs(Article, :status) %>
- </div>
- <div class="form-actions">
- <%= f.button :submit %>
- </div>
- <% end %>
- <%= simple_format(@article.article_body) %>
- $(document).ready(function() {
- $('.summernote').summernote({
- height: 120
- });
- });
- $(document).ready(function() {
- $('.summernote').summernote({
- height: 120
- });
- $(".summernote").summernote("code", your server variable to string);
- });
- <%= sanitize @course.corps %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement