Merge pull request #2204 from urbanrotnik/ur-sci-4067-text-description-overwritten

Fix for step description overwriting [SCI-4067]
This commit is contained in:
Alex Kriuchykhin 2019-11-11 10:58:32 +01:00 committed by GitHub
commit 22962256cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -270,7 +270,7 @@
if ($('#steps .step').length > 0) {
$("[data-action='new-step']:last").show();
$(".expand-all-steps").show();
}
}
} else {
$("[data-action='new-step']").hide();
$("[data-action='edit-step']").hide();
@ -584,7 +584,7 @@
animateSpinner(null, true);
DragNDropSteps.appendFilesToForm(ev).then(formData => {
formData.append('step[description]', TinyMCE.getContent());
formData.append('step[description]', $tinyMCEInput);
$.ajax({
url: $form.attr('action'),
method: 'POST',