Merge pull request #1732 from aignatov-bio/ai-sci-3413-tinymce-step-not-loading

Clear step edit textarea status before going to edit mode [SCI-3413]
This commit is contained in:
Miha Mencin 2019-05-07 16:36:04 +02:00 committed by GitHub
commit 0a7696200a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);