Fix TinyMCE editor initialization for step editing [SCI-3511]

This commit is contained in:
Oleksii Kriuchykhin 2019-06-28 12:06:04 +02:00
parent 83bc9eb22f
commit 2f39b7f22b

View file

@ -157,6 +157,8 @@
$("#step_name").focus(); $("#step_name").focus();
$("#new-step-main-tab a").on("shown.bs.tab", function() { $("#new-step-main-tab a").on("shown.bs.tab", function() {
$("#step_name").focus(); $("#step_name").focus();
tinyMCE.editors.step_description_textarea.remove();
TinyMCE.init('#step_description_textarea');
}); });
}); });
} }