Hi,
Try with small timeout, e.g.
<telerik:RadEditor ID="RadEditor1" runat="server" OnClientSelectionChange="OnClientSelectionChange">
<Content><a href="http://www.telerik.com">Telerik</a></Content>
</telerik:RadEditor>
<script type="text/javascript">
function OnClientSelectionChange(editor, args) {
var elem = editor.getSelectedElement();
var tool = editor.getToolByName("Unlink");
if ((tool) && (elem.tagName == "A")) {
setTimeout(function () {
tool.setState(-1);
}, 100);
}
}
</script>
Greetings,
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.