From 13d1cc51716678e96e85559c19c43d495413e5b4 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Thu, 26 Jan 2017 13:50:32 +0100 Subject: [PATCH] fix entering new smart anotations --- app/assets/javascripts/sitewide/tiny_mce.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/sitewide/tiny_mce.js.erb b/app/assets/javascripts/sitewide/tiny_mce.js.erb index 8a4da317f..63e818ff8 100644 --- a/app/assets/javascripts/sitewide/tiny_mce.js.erb +++ b/app/assets/javascripts/sitewide/tiny_mce.js.erb @@ -63,7 +63,7 @@ var TinyMCE = (function() { initHighlightjsIframe($(this.iframeElement).contents()); }, setup: function(editor) { - editor.on('Change', function(e) { + editor.on('keydown', function(e) { if(e.keyCode == 13 && $(editor.contentDocument.activeElement).atwho('isSelecting')) { return false; }