Hi,
Can anybody provide me code to add the character count as avaibale in new version to be merged or the files to be updated in cutesoft client folder.As i can't upgrade my old version to new version, I have modified the previous cute editor according to my application. So it is not feasible for me to change my cute editor at this stage.
Please provide me plugin or the required code to changes in the cute soft client editor so that i can merge the character and word count in my previos version.
I have tried each and every code given in forums.
<script type="text/javascript" language="javascript">// get the cute editor instance
var editorunsubscribe = document.getElementById('<%=UnSubscribeEditor1.ClientID%>');
function CE_attachEvent() {
// get the cute editor instance
if (editorunsubscribe.attachEvent)
editorunsubscribe.attachEvent(
'onclick', CountWords);
else if (editdoc.addEventListener)
editorunsubscribe.addEventListener(
'onclick', CountWords, true);
//Get the editor content
var editdoc = editorunsubscribe.GetDocument();
// attach Event
if (editdoc.attachEvent)
editdoc.attachEvent(
'onkeypress', CountWords);
else if (editdoc.addEventListener)
editdoc.addEventListener(
'keypress', CountWords, true);
setTimeout(CE_attachEvent, 1000);
function CountWords() {
document.getElementById(
'RemarksEditorCount').innerHTML = 'Character Count = ' + editor1.getHTML().length;
}
</script>
Tried the above code also but that didnt worked.
Its really urgent. Please reply.
Thanks and Regards
Yuvika