Close RTE on save [SCI-3062][SCI-3071]

This commit is contained in:
Oleksii Kriuchykhin 2019-03-14 16:19:11 +01:00
parent a822227383
commit 2cc170c3d4

View file

@ -144,8 +144,7 @@ var TinyMCE = (function() {
editor.save();
editor.setProgressState(0);
editorForm.find('.tinymce-status-badge').removeClass('hidden');
$(editor.getContainer())
.find('.tinymce-save-button').addClass('hidden');
editor.remove();
}).on('ajax:error', function(ev, data) {
var model = editor.getElement().dataset.objectType;
$(this).renderFormErrors(model, data.responseJSON);