Merge pull request #1857 from aignatov-bio/ai-sci-3578-fix-autosave-rte-icon

Clear TinyMce autosave after manual save [SCI-3578]
This commit is contained in:
aignatov-bio 2019-06-24 09:38:47 +02:00 committed by GitHub
commit 8dd57622b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,6 +165,7 @@ var TinyMCE = (function() {
.on('ajax:success', function(ev, data) {
editor.save();
editor.setProgressState(0);
editor.plugins.autosave.removeDraft();
editorForm.find('.tinymce-status-badge').removeClass('hidden');
editor.remove();
editorForm.find('.tinymce-view').html(data.html).removeClass('hidden');