Hello,
There is an ability in in Hyperlink Manager to enter anchor name with spaces, etc. No validation performed.
Could you please reply if it can be fixed?
1 Answer, 1 is accepted
0
Rumen
Telerik team
answered on 13 Jul 2012, 02:05 PM
Hello,
I tested the reported scenario and noticed that the anchors with empty space in them works as expected.
Nevertheless, if you want to strip the spaces you can use the OnClientPasteHtml event to modify the inserted content:
<script type="text/javascript">
function OnClientPasteHtml(sender, args) {
var commandName = args.get_commandName();
var value = args.get_value();
alert(commandName);
if (commandName == "LinkManager") {
debugger;
}
}
</script>
<telerik:RadEditor runat="server"
OnClientPasteHtml="OnClientPasteHtml"
ImageManager-ViewPaths="~/"
ID="RadEditor1">
</telerik:RadEditor>
If you want to add validation in the LinkManager.ascx, you can see how to customize it in the following live demo: Customize Built-in Dialogs.
Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.