diff --git a/app/views/steps/_empty_step.html.erb b/app/views/steps/_empty_step.html.erb index f23f48a9b..240c3c99d 100644 --- a/app/views/steps/_empty_step.html.erb +++ b/app/views/steps/_empty_step.html.erb @@ -27,6 +27,7 @@
<%= f.text_field :name, label: t("protocols.steps.new.name"), placeholder: t("protocols.steps.new.name_placeholder") %>
+ <%= quill_editor nil, { id: 'step_description', name: 'step[description]', value: @step.description } %>
diff --git a/app/views/steps/_step.html.erb b/app/views/steps/_step.html.erb index ab8fa3979..c7399546e 100644 --- a/app/views/steps/_step.html.erb +++ b/app/views/steps/_step.html.erb @@ -32,7 +32,7 @@
- <% if step.description.blank? %> + <% if strip_tags(step.description).blank? %> <%= t("protocols.steps.no_description") %> <% else %> <%= step.description.html_safe %>