From 100cc700c6383878f866bde24fd7e0e011b4dcba Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Thu, 26 Jan 2017 16:37:44 +0100 Subject: [PATCH] Fix RTF toolbar init after eding new step [SCI-943] --- app/assets/javascripts/protocols/steps.js.erb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/assets/javascripts/protocols/steps.js.erb b/app/assets/javascripts/protocols/steps.js.erb index 436502660..9d8e2de22 100644 --- a/app/assets/javascripts/protocols/steps.js.erb +++ b/app/assets/javascripts/protocols/steps.js.erb @@ -107,7 +107,7 @@ function applyEditCallBack() { animateSpinner(null, false); initPreviewModal(); - TinyMCE.init(); + TinyMCE.refresh() $("#new-step-checklists fieldset.nested_step_checklists ul").each(function () { enableCheckboxSorting(this); }); @@ -254,9 +254,6 @@ function formNewAjax($form) { initHandsOnTable($new_step); expandStep($new_step); toggleButtons(true); - - TinyMCE.init(); - TinyMCE.highlight(); SmartAnnotation.preventPropagation('.atwho-user-popover'); //Rerender tables