From cec5f1333d18a65b9308f93b9bfebdc27756cbf8 Mon Sep 17 00:00:00 2001 From: zmagod Date: Thu, 26 Jan 2017 16:54:43 +0100 Subject: [PATCH] fixes RTE bug for new text results [fixes SCI-962] --- app/assets/javascripts/results/result_texts.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/javascripts/results/result_texts.js b/app/assets/javascripts/results/result_texts.js index 0128ea589..649d5d2b8 100644 --- a/app/assets/javascripts/results/result_texts.js +++ b/app/assets/javascripts/results/result_texts.js @@ -10,10 +10,8 @@ $("#new-result-text").on("ajax:success", function(e, data) { $form.remove(); toggleResultEditButtons(true); }); - - TinyMCE.init(); toggleResultEditButtons(false); - + TinyMCE.refresh(); $("#result_name").focus(); });