views:

13

answers:

0

I am trying to use ckeditor to edit single lines so I don't want users to be able to use the enter key. Does anyone know how to stop the enter key from being used?

I tried $("#text").keypress(function(event){ alert(event.keyCode); }); But it didn't register. Thanks for any help.