From 059ebf6f276f62e800341c87f7262fe7ebd15021 Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Fri, 10 May 2019 20:39:26 +0200 Subject: [PATCH] Fix task and protocol description (TinyMCE) rendering on task page Closes SCI-3438. --- app/views/my_modules/_module_header.html.erb | 6 +++--- app/views/my_modules/protocols.html.erb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/my_modules/_module_header.html.erb b/app/views/my_modules/_module_header.html.erb index bef668a94..9c85976e0 100644 --- a/app/views/my_modules/_module_header.html.erb +++ b/app/views/my_modules/_module_header.html.erb @@ -63,8 +63,8 @@
- - <%= render partial: "my_modules/tags", locals: { my_module: @my_module, editable: can_manage_module?(@my_module) } %> + + <%= render partial: "my_modules/tags", locals: { my_module: @my_module, editable: can_manage_module?(@my_module) } %> @@ -77,7 +77,7 @@ <% if can_manage_module?(@my_module) %> <%= render partial: "description_form" %> <% elsif @my_module.description.present? %> - <%= custom_auto_link(@my_module.description, + <%= custom_auto_link(@my_module.tinymce_render(:description), simple_format: false, tags: %w(img), team: current_team) %> diff --git a/app/views/my_modules/protocols.html.erb b/app/views/my_modules/protocols.html.erb index 7dd561485..c827b8d65 100644 --- a/app/views/my_modules/protocols.html.erb +++ b/app/views/my_modules/protocols.html.erb @@ -40,7 +40,7 @@ } %> <% elsif @my_module.protocol.description.present? %> - <%= custom_auto_link(@my_module.protocol.description, + <%= custom_auto_link(@my_module.protocol.tinymce_render(:description), simple_format: false, tags: %w(img), team: current_team) %>