use full markdown editor for comments
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
</div>
|
||||
<div class="items">
|
||||
<div class="item content">
|
||||
<%= render_mini_md(c.content).html_safe %>
|
||||
<%= render_md(c.content).html_safe %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,5 +1,5 @@
|
||||
<h3>New comment</h3>
|
||||
<%= form_for [@post, @comment] do |f| %>
|
||||
<%= render partial: "md_editor", locals: {name: "comment[content]", content: @comment.content, mini: true} %>
|
||||
<%= render partial: "md_editor", locals: {name: "comment[content]", content: @comment.content, mini: false} %>
|
||||
<p><%= f.submit class: "btn blue" %></p>
|
||||
<% end %>
|
||||
@@ -3,7 +3,7 @@
|
||||
<h1>Edit comment</h1>
|
||||
|
||||
<%= form_for [@comment.blogpost, @comment] do |f| %>
|
||||
<%= render partial: "md_editor", locals: {name: "comment[content]", content: @comment.content, mini: true} %>
|
||||
<%= render partial: "md_editor", locals: {name: "comment[content]", content: @comment.content, mini: false} %>
|
||||
<p><%= f.submit "Update Comment", class: "btn blue left" %></p>
|
||||
<% end %>
|
||||
<p><%= button_to "Delete comment", [@comment.blogpost, @comment] , method: "delete", data: {confirm: "Delete comment forever?"}, class: "btn red right" %></p>
|
||||
|
||||
Reference in New Issue
Block a user