From: Harry Wood Date: Thu, 28 Apr 2022 23:52:21 +0000 (+0100) Subject: Add kramdown info box with preview button X-Git-Tag: live~1661^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/b9659cdfc52aec4a2063b2af8e24033f98e380d8?ds=inline Add kramdown info box with preview button --- diff --git a/app/views/reports/new.html.erb b/app/views/reports/new.html.erb index 6c12c14e3..8106ccfc9 100644 --- a/app/views/reports/new.html.erb +++ b/app/views/reports/new.html.erb @@ -18,6 +18,6 @@ <% end %> <%= f.collection_radio_buttons :category, report_categories(@report.issue.reportable), :id, :label %> - <%= f.text_area :details, :rows => 5, :label_as_placeholder => true %> + <%= f.richtext_field :details, :rows => 18, :label_as_placeholder => true, :format => "markdown" %> <%= f.primary %> <% end %>