From 2ff5199be03f4954fefbddaa67d87f97e747050a Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Thu, 7 Feb 2019 16:58:38 +0100 Subject: [PATCH] Fix TinyMCE images in protocol import [SCI-3030] --- app/assets/javascripts/protocols/import_export/import.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/protocols/import_export/import.js.erb b/app/assets/javascripts/protocols/import_export/import.js.erb index 6ecc22fdb..329d131a7 100644 --- a/app/assets/javascripts/protocols/import_export/import.js.erb +++ b/app/assets/javascripts/protocols/import_export/import.js.erb @@ -270,7 +270,7 @@ function importProtocolFromFile( element.getAttribute('fileref')); var image_tag = "" description = description.replace(match, image_tag); // replace the token with image - }).bind(this); + }); // I know is crazy but is the only way I found to pass valid HTML return $('
').html( description.replace('