diff options
author | jomo <github@jomo.tv> | 2014-05-11 06:43:56 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2014-05-11 06:43:56 +0200 |
commit | 19eb868a50735d3c717b45eebeee1f67ea7b827e (patch) | |
tree | a395959c558695fed240161bffaaa865dbcd3964 /app/views/forumthreads/edit.html.erb | |
parent | df030f4d2dfbf3708731d5ff53f17d3dac2d9d2e (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.erb | 3 |
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" %> |