Hey
I had the previous version of Telerik controls, and the PastePlainText was not working so we had to put custom javascript in the code, now that i am trying to upgrade using the trail version of telerik before we purchase the new version, i have tried
<Telerik:RadEditor ID="radEditor1" Runat="server"
Width="99%" Height="350px" EditModes="Design"
Skin="WebBlue" StripFormattingOptions="All"
ToolsFile="ToolsFile.xml" OnClientCommandExecuting="OnClientCommandExecuting" >
</Telerik:RadEditor>
<script type="text/javascript">
function OnClientCommandExecuting(editor, commandName, oTool) {
if (commandName == "Paste") {
editor.fire("PastePlainText");
return false;
}
}
</script>
but when i try to load html text from word into the editro control it is still taking all the html tags along with it.
In the old version with the custom javascript on the page the stripping was working but now it seems not to be, am i missing something?
Many thnaks in advance
I have also tried the the following javascript but it doesnt work either
function OnClientCommandExecuting(editor, args) {
var name = args.get_name();
var val = args.get_value();
if (name == "Paste")
{
editor.fire("PastePlainText");
args.set_cancel(true);
}
}
Zal
I had the previous version of Telerik controls, and the PastePlainText was not working so we had to put custom javascript in the code, now that i am trying to upgrade using the trail version of telerik before we purchase the new version, i have tried
<Telerik:RadEditor ID="radEditor1" Runat="server"
Width="99%" Height="350px" EditModes="Design"
Skin="WebBlue" StripFormattingOptions="All"
ToolsFile="ToolsFile.xml" OnClientCommandExecuting="OnClientCommandExecuting" >
</Telerik:RadEditor>
<script type="text/javascript">
function OnClientCommandExecuting(editor, commandName, oTool) {
if (commandName == "Paste") {
editor.fire("PastePlainText");
return false;
}
}
</script>
but when i try to load html text from word into the editro control it is still taking all the html tags along with it.
In the old version with the custom javascript on the page the stripping was working but now it seems not to be, am i missing something?
Many thnaks in advance
I have also tried the the following javascript but it doesnt work either
function OnClientCommandExecuting(editor, args) {
var name = args.get_name();
var val = args.get_value();
if (name == "Paste")
{
editor.fire("PastePlainText");
args.set_cancel(true);
}
}
Zal