diff --git a/app/views/my_modules/_description_form.html.erb b/app/views/my_modules/_description_form.html.erb index 225cf1a79..358dde9e1 100644 --- a/app/views/my_modules/_description_form.html.erb +++ b/app/views/my_modules/_description_form.html.erb @@ -3,14 +3,11 @@
- <% if @my_module.description.present? %> - <%= custom_auto_link(@my_module.tinymce_render(:description), - simple_format: false, - tags: %w(img), - team: current_team) %> - <% end %> -
+ data-tinymce-init="tinymce-my-module-description-<%= @my_module.id %>" + ><%= custom_auto_link(@my_module.tinymce_render(:description), + simple_format: false, + tags: %w(img), + team: current_team) if @my_module.description.present? %> <%= f.tiny_mce_editor(:description, id: :my_module_description_textarea, class: 'hidden', diff --git a/app/views/my_modules/protocols/_protocol_description_form.html.erb b/app/views/my_modules/protocols/_protocol_description_form.html.erb index 9fb6d8b64..af3d25fb4 100644 --- a/app/views/my_modules/protocols/_protocol_description_form.html.erb +++ b/app/views/my_modules/protocols/_protocol_description_form.html.erb @@ -3,14 +3,11 @@
- <% if protocol.description.present? %> - <%= custom_auto_link(protocol.tinymce_render(:description), - simple_format: false, - tags: %w(img), - team: current_team) %> - <% end %> -
+ data-tinymce-init="tinymce-protocol-description-<%= protocol.id %>" + ><%= custom_auto_link(protocol.tinymce_render(:description), + simple_format: false, + tags: %w(img), + team: current_team) if protocol.description.present? %> <%= f.tiny_mce_editor(:description, id: :protocol_description_textarea, class: 'hidden',