Problem with iconurl property in ToolsFile.xml

3 posts, 1 answers
  1. Peter Livsey
    Peter Livsey avatar
    44 posts
    Member since:
    Aug 2012

    Posted 05 Aug 2008 Link to this post

    Hi

    We are upgrading our RadEditor from version 4.5.2 to 5.2.0.0 and are having a problem with the iconurl in the toolsfile.xml.

    On version 4.5.2 we had specified some custom tools with our own icon
    eg. 
        <tool name="Insert Email Link" iconurl="/_wpresources/DCC_Custom_Buttons/icon_email.gif" />

    When we run the page in ver 5.2 and go into edit mode, the toolbar is not shown correctly and a Javascript error is given on the page.

    Line: 2766
    Char: 65
    Error: Sys.InvalidOperationException: 'iconurl' is not a property or an existing field.
    Code: 0
    URL: http://servername/Sites/Public/Pages/Test.aspx

    Why does this no longer work, has the iconurl property been replaced/removed?  If so what can we do to replicate the functionality with the latest version.

    Thanks
    Peter
  2. Answer
    George
    Admin
    George avatar
    859 posts

    Posted 05 Aug 2008 Link to this post

    Hi Peter,

    The iconUrl property is not supported by RadEditor for ASP.NET AJAX (RadEditor for MOSS 5.x), 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 in the following KB article: Adding Your Own Buttons.

    All the best,
    George
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  3. Peter Livsey
    Peter Livsey avatar
    44 posts
    Member since:
    Aug 2012

    Posted 05 Aug 2008 Link to this post

    Thanks George, that's getting things working.
Back to Top