Medium.js
Medium.js copied to clipboard
Prevent event
Hi, I'm trying to prevent pressing 'enter'. Here is what I'm doing:
keyContext: {
enter: function(event) {
event.preventDefault();
return false;
}
}
As I understand from docs I need 'return false;' only. But it doesn't work for me..
Are you trying to do this on an instance where the mode in 'inline'? I can't get it to work unless the mode is no inline.