I cannot get this code to work.
Can anyone identify where I am going wrong!?
Assume all ID's are correct (I am wiring this in using ClientID property of controls).
----------------------------------------------------------------------------------------
<script language="javascript" type="text/javascript">
<!--
//get the cute editor instance
var editor = document.getElementById("CE_htmlEditor_Editor_ID");
//Get the editor content
var editdoc = editor.GetDocument();
//attach Event
if(editdoc.attachEvent)
editdoc.attachEvent("onkeypress", HandleChange);
else if(editdoc.addEventListener)
editdoc.addEventListener("keypress", HandleChange, true);
//Q: Is there a way to check the keypress event was registered!???
function HandleChange()
{
window.alert('never gets here!!!!!!!!!!!!');
}
//-->
</script>
----------------------------------------------------------------------------------------
Stephen McCormack
MWeb Solutions Pty Ltd
http://www.mwebsolutions.com.au