Hide CssClasses on Hyperlink Manager

3 posts, 1 answers
  1. John Colclough
    John Colclough avatar
    4 posts
    Member since:
    Nov 2009

    Posted 27 Apr 2013 Link to this post

    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. Answer
    Rumen
    Admin
    Rumen avatar
    13849 posts

    Posted 29 Apr 2013 Link to this post

    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.
  3. John Colclough
    John Colclough avatar
    4 posts
    Member since:
    Nov 2009

    Posted 29 Apr 2013 Link to this post

    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.
Back to Top