Iconurl not working

2 posts, 0 answers
  1. Gautam
    Gautam avatar
    2 posts
    Member since:
    Mar 2012

    Posted 23 Mar 2012 Link to this post

    Hi

    When I place below code
    <tool name="Line Spacing" type="dropdown" enabled="true" iconurl="~/RadControls/Editor/Skins/Default/Buttons/LineSpacing.gif">
          <item name="Default" value="" />
          <item name="Single space" value="20px" />
          <item name="1.5 Lines" value="35px" />
          <item name="Double spacing" value="50px" />
        </tool>

    My radeditor does not respond. When I remove iconurl from above line then it works fine.
    I have replace the iconurl path with my local system path and have image also.

    I need to have a icon for line spacing instead of combo box presently display.

    Thanks
    Gautam Singh
  2. Richard
    Richard avatar
    479 posts
    Member since:
    Nov 2011

    Posted 26 Mar 2012 Link to this post

    Gautam:

    (copied from the Telerik Admin response in this thread: http://www.telerik.com/community/forums/sharepoint-2007/full-featured-editor/problem-with-iconurl-property-in-toolsfile-xml.aspx )

    The iconUrl property is not supported by RadEditor for ASP.NET AJAX because it has new toolbar architecture based on image sprites. Please, remove the iconurl property from the respective ToolsFile.

    Note that, the new RadEditor use a new client-side model, semantic rendering, and many other innovations such as the use of css image sprites, it delivers minimal and well-formed output. It’s new rendering and architecture allows it to be a couple of times faster than the classic ASP.NET Editor.

    To set an image to a custom tool you should provide image files for it and declare the following CSS class:

    <style>
    .rade_toolbar.<skinName>
    .<commandName>
    {
    background-image: url(MyImage.gif);
    }

    </style>

    You can find more information on the following documentation page: Adding Your Own Buttons.

    Hope this helps!

Back to Top