From 2d4104b0f26314805fd2be820a03cd38d0565887 Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Mon, 2 Dec 2019 15:53:42 +0100 Subject: [PATCH] Fix smart annotation for autosave --- app/assets/javascripts/sitewide/tiny_mce.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/sitewide/tiny_mce.js b/app/assets/javascripts/sitewide/tiny_mce.js index b5231682c..13c45d8bd 100644 --- a/app/assets/javascripts/sitewide/tiny_mce.js +++ b/app/assets/javascripts/sitewide/tiny_mce.js @@ -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();