+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Icons for RadEdit custom tools in Admin pages

Icons for RadEdit custom tools in Admin pages

4 posts, 1 answered
  1. Alessio S.
    Alessio S. avatar
    37 posts
    Registered:
    31 May 2010
    12 Jan 2011
    Link to this post
    Hi,
    I added custom tools to some RadEdit editors in the admin pages following the instructions here:
    http://www.telerik.com/help/aspnet-ajax/addingyourownbuttons.html
    But I can't figure out where I need to add the CSS classes to set the button icons. Since the edit form is a User Control I cannot add the styles to the header as written on the page, so I looked for the CSS files loaded by the editor. But even with Firebug I don't understand where the CSS classes are coming from - it's a nameless CSS file returned by WebResource.axd and it contains strings which cannot be found in any file in the solution.
    The files pointed by the editor's CssFiles collection seem to be ignored.

    Thank you,
    Alessio
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Jan 2011
    Link to this post
    Hello Alessio,

    1. The RadEditor loads it embedded resources with WebResource.axd
    2. You can add the css class in the HTML of the control where RadEditor is declared ( How to map an external template)
    3. You can add the css classes in your theme stylesheet if you are working on the front end and you want to make modifications to a page ( not a backend view).

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. Alessio S.
    Alessio S. avatar
    37 posts
    Registered:
    31 May 2010
    13 Jan 2011
    Link to this post
    Thank you. In the end I added the link to the CSS file to the Admin.master page and it works fine.
    Now I am trying to add the custom tools to the RadEditor which appears when editing a GenericContent block from the Page editor, but again I can't seem to find where it's loaded from, is it an embedded dialog? The Extended templates only seem to contain the template for editing items through the GenericContent module interface.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 Jan 2011
    Link to this post
    Hello Alessio,

    The generic content control used GenericContentDesigner.ascx template which is added to the external templates archive. This templates contains instance of RadEditor control.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 1 answered