I want to use CKEditor as a single line editor, so I figured I could prevent the enter key from firing. Below is the code which does capture when the enter key is hit but does not prevent it from adding the enter key to the editor. It does work if I change to other alpha characters though. ideas?
instance.on("instanceReady", function() { this.document.on( 'keypress', function( ev ) { if (ev.data.getKey()==13) { var domEvent = ev.data; domEvent.preventDefault(); domEvent.stopPropagation(); } }); });