Merge pull request #455 from mlorb/ml_sci_944

Fix entering new smart anotations [SCI-944]
This commit is contained in:
Luka Murn 2017-01-26 14:06:35 +01:00 committed by GitHub
commit 3e6d11a087

View file

@ -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;
}