The example code is well documented and straight-forward.
function CE_attachEvent()
{
// get the cute editor instance
var editor1 = document.getElementById('CE_Editor1_ID');
//Get the editor content
var editdoc=editor1.GetDocument();
// attach Event
if(editdoc.attachEvent)
editdoc.attachEvent('onkeypress',HandleChange);
else if(editdoc.addEventListener)
editdoc.addEventListener('keypress',HandleChange,true);
}
function CE_detachEvent()
{
// get the cute editor instance
var editor1 = document.getElementById('CE_Editor1_ID');
//Get the editor content
var editdoc=editor1.GetDocument();
// detach Event
if(editdoc.detachEvent)
editdoc.detachEvent('onkeypress',HandleChange);
else if(editdoc.removeEventListener)
editdoc.removeEventListener('keypress',HandleChange,true);
}
function HandleChange()
{
// get the cute editor instance
var editor1 = document.getElementById('CE_Editor1_ID');
//Get the editor content
var editdoc=editor1.GetDocument();
alert(editdoc.body.innerHTML);
}
If you have any further questions, please let me know.
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx