onbeforepaste does not seem to work when attatched (client side) at the OnClientLoad_RadEditor event. If I change 'onbeforepaste' to 'onclick' it works. My goal is to eventually prevent when certain conditions exist.
Relevant links
onbeforepaste event
all dhmtl events
radeditor example on attatching onkeypress event
Thanks in advance,
John
function
OnBeforePaste_Editor(e){
debugger;
alert(
"paste attempted"
);
e.returnValue=
false
;
/* disable pasting to test*/
}
function
OnClientLoad_RadEditor(editor, args) {
editor.attachEventHandler(
"onbeforepaste"
, OnBeforePaste_Editor);
...
}
Relevant links
onbeforepaste event
all dhmtl events
radeditor example on attatching onkeypress event
Thanks in advance,
John