How do I cancel the enter key inside radeditor?
I found other examples from telerik support suggesting to use cancelRawEvent. This function does not work to prevent enter key, although it seems to block other keys just fine. I have tried all sorts of combinations of preventDefault, stopPropagation, set_cancel, return false, etc. Nothing stops it from inserting a carriage return into the radeditor. Is it just not possible?
function EditorLoad(editor, args) {
editor.attachEventHandler("onkeydown", function(e)
{
if (e.keyCode == 13) {
$telerik.cancelRawEvent(e)
}
});
}