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

Hide CssClasses on Hyperlink Manager

2 Answers 80 Views
Editor
This is a migrated thread and some comments may be shown as answers.
John Colclough
Top achievements
Rank 1
John Colclough asked on 27 Apr 2013, 10:26 AM
Hi, I've searched and found similar topics but I'm seeing some unusual behaviour. For reference I am using 2013Q1 and have access to the latest version.

I know the fundamentals behind hiding the classes by pointing to an external empty css stylesheet or adding a blank class CssClasses.Add("", "") etc.

This doesn't work however because I want to hide the Apply Class dropdown list on the main editor toolbar (deleted from toolsfile), the add blank class doesn't work when it is omitted, as soon as I put it on the main editor the Apply Class dropdown list clears in the hyperlink manager.

I can leave the dropdown on the main toolbar if necessary, and that is what I am doing at the moment but was wondering if I could get access to add a blank style to the Apply Class dropdown list on the hyperlink manager without having to add it to the main editor toolbar?

Additionally I'd like to not map external templates if possible.

Thanks for any pointers,
John C.

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 29 Apr 2013, 09:13 AM
Hello,

The Apply Class dropdown and Css Class one in the Hyperlink managers are related to each other and they use common configuration settings.

If you would like you can hide the Apply Class dropdown programmatically from the toolbar using this code:
<telerik:RadEditor ID="RadEditor1" OnClientLoad="OnClientLoad" runat="server"></telerik:RadEditor>
<script>   
    function OnClientLoad(editor) {
        editor.getToolByName("ApplyClass").get_element().style.display = "none";
    }
</script>


All the best,
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.
0
John Colclough
Top achievements
Rank 1
answered on 29 Apr 2013, 09:44 AM
Thanks Rumen, that has done the trick. It has allowed me to remove the Apply Class dropdown from the main editor toolbar but to also add the blank class to clear the Apply Class dropdown on the Hyperlink Manager.

Many thanks,
John C.
Tags
Editor
Asked by
John Colclough
Top achievements
Rank 1
Answers by
Rumen
Telerik team
John Colclough
Top achievements
Rank 1
Share this question
or