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

Problem with iconurl property in ToolsFile.xml

2 Answers 99 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Peter Livsey
Top achievements
Rank 1
Peter Livsey asked on 05 Aug 2008, 12:53 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 05 Aug 2008, 02:24 PM
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.
0
Peter Livsey
Top achievements
Rank 1
answered on 05 Aug 2008, 03:02 PM
Thanks George, that's getting things working.
Tags
WebParts for SharePoint
Asked by
Peter Livsey
Top achievements
Rank 1
Answers by
George
Telerik team
Peter Livsey
Top achievements
Rank 1
Share this question
or