Merge pull request #1747 from biosistemika/lm-sci-3438-fix

Fix TinyMCE images in task description and task protocol description view [SCI-3438]
This commit is contained in:
Miha Mencin 2019-05-13 10:56:30 +02:00 committed by GitHub
commit 765c6ebd6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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) %>

View file

@ -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) %>