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

Iconurl not working

1 Answer 41 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gautam
Top achievements
Rank 1
Gautam asked on 23 Mar 2012, 02:51 PM
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

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 26 Mar 2012, 04:15 PM
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!

Tags
Editor
Asked by
Gautam
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or