From ea545801aaf0593a11e8c7af47e20d60064b2cbe Mon Sep 17 00:00:00 2001 From: Anton Ignatov Date: Tue, 7 May 2019 15:54:32 +0200 Subject: [PATCH] Clear edit textarea status before going to editmode --- app/assets/javascripts/protocols/steps.js.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/protocols/steps.js.erb b/app/assets/javascripts/protocols/steps.js.erb index 3592fce11..31970e535 100644 --- a/app/assets/javascripts/protocols/steps.js.erb +++ b/app/assets/javascripts/protocols/steps.js.erb @@ -150,6 +150,7 @@ animateSpinner(null, false); FilePreviewModal.init(); DragNDropSteps.clearFiles(); + if (tinyMCE.editors.step_description_textarea) tinyMCE.editors.step_description_textarea.remove(); TinyMCE.init('#step_description_textarea'); $("#new-step-checklists fieldset.nested_step_checklists ul").each(function () { enableCheckboxSorting(this);