summaryrefslogtreecommitdiff
path: root/app/views/forumthreads/edit.html.erb
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-05-11 06:43:56 +0200
committerjomo <github@jomo.tv>2014-05-11 06:43:56 +0200
commit19eb868a50735d3c717b45eebeee1f67ea7b827e (patch)
treea395959c558695fed240161bffaaa865dbcd3964 /app/views/forumthreads/edit.html.erb
parentdf030f4d2dfbf3708731d5ff53f17d3dac2d9d2e (diff)
Add markdown preview; fix bug with deleted editor
Diffstat (limited to 'app/views/forumthreads/edit.html.erb')
-rw-r--r--app/views/forumthreads/edit.html.erb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/forumthreads/edit.html.erb b/app/views/forumthreads/edit.html.erb
index ee87009..044a8ad 100644
--- a/app/views/forumthreads/edit.html.erb
+++ b/app/views/forumthreads/edit.html.erb
@@ -24,8 +24,7 @@
<% end %>
</table>
<%= f.text_field :title, placeholder: "Title" %>
- <%= render partial: "mdhelp" %>
- <%= f.text_area :content, placeholder: "Text" %>
+ <%= render partial: "md_editor", locals: {name: "forumthread[content]", content: @thread.content, mini: false} %>
<p><%= f.submit "Update thread", class: "btn blue left" %></p>
<% end %>
<%= button_to "Delete thread", @thread, :method => "delete", data: {confirm: "Delete thread & comments forever?"}, class: "btn red right" %>