Merge pull request #2242 from aignatov-bio/ai-sci-4136-fix-smart-annotation-on-autosave

Fix smart annotation for autosave [SCI-4136]
This commit is contained in:
aignatov-bio 2019-12-03 09:09:16 +01:00 committed by GitHub
commit f148ae8b24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -315,6 +315,7 @@ var TinyMCE = (function() {
});
editor.on('blur', function(e) {
if ($('.atwho-view:visible').length) return false;
setTimeout(() => {
if (editor.isNotDirty === false) {
$(editor.container).find('.tinymce-save-button').click();