Hello All ,
I wish to block all the Ctrl+V Operation in Rad Editor , i ve partially accomplished this using the following code
var CmdName = commandName.get_commandName();
if (CmdName == "PastePlainText")
{
if (document.all)
{
var textLength = CalculateLength(editor);
if (textLength >= maxTextLength)
{
alert(messageText);
commandName.set_cancel(true);
//return false;
}
}
}
else if(CmdName == "PasteFromWord"
|| CmdName == "PasteFromWordNoFontsNoSizes"
|| CmdName == "Paste"
|| CmdName == "PasteAsHtml" )
{
alert("nCtrl+V is not currently supported in Y-Change. Please click right mouse button click and select \"paste\" or \"paste plain text\" from the drop down menu. ");
return;
}
}
Above function works in IE well But fails in Firefox ??? what can i do further ?
Thanks
Prince
I wish to block all the Ctrl+V Operation in Rad Editor , i ve partially accomplished this using the following code
var CmdName = commandName.get_commandName();
if (CmdName == "PastePlainText")
{
if (document.all)
{
var textLength = CalculateLength(editor);
if (textLength >= maxTextLength)
{
alert(messageText);
commandName.set_cancel(true);
//return false;
}
}
}
else if(CmdName == "PasteFromWord"
|| CmdName == "PasteFromWordNoFontsNoSizes"
|| CmdName == "Paste"
|| CmdName == "PasteAsHtml" )
{
alert("nCtrl+V is not currently supported in Y-Change. Please click right mouse button click and select \"paste\" or \"paste plain text\" from the drop down menu. ");
return;
}
}
Above function works in IE well But fails in Firefox ??? what can i do further ?
Thanks
Prince