This is a migrated thread and some comments may be shown as answers.

[Solved] class="ApplyClass"

1 Answer 100 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Amey
Top achievements
Rank 1
Amey asked on 21 Sep 2009, 04:51 PM
Why is class="ApplyClass" being applied to every link we embed in the editor?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 24 Sep 2009, 08:23 AM
Hi Christian,

Thank you for reporting this problem. I reproduced it and logged it for fixing in our bug tracking system.

Until we fix the problem, you can strip the class="ApplyClass" attribute when inserting links from the Link manager using the following code:

<script type="text/javascript"
function OnClientPasteHtml(sender, args) 
    var commandName = args.get_commandName(); 
    var value = args.get_value(); 
 
    if (commandName == "LinkManager"
    { 
        value = value.replace(/class=ApplyClass/gi,""); 
        args.set_value(value);       
    } 
</script> 
<telerik:RadEditor runat="server" OnClientPasteHtml="OnClientPasteHtml" ID="RadEditor1"></telerik:RadEditor> 

Greetings,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Amey
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or