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

Using Button Icons external to editor

2 Answers 53 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Nathan J Pledger
Top achievements
Rank 2
Nathan J Pledger asked on 25 May 2010, 10:11 AM
I need to allow administrative users to configure what buttons on the toolbar are available to end users. Sort of like the "Customize Commands" in Office 2003/VS.

To be able to offer a richer experience, I would like to be able to represent buttons using the original icons used on the toolbars. Is it possible, given the tool "key" as used in the Tools XML file, to obtain the icon graphic URL?


2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 25 May 2010, 03:07 PM
Hi Nathan,

To optimize the RadEditor's loading, the toolbar loads a single image sprite (but not different multiple icons for every tool as the classic editor), which contains the appearance of all tools: ToolBarSprites.gif - contains the images for the vertical toolbars and other horizontal elements.
We load the different icons by positioning the sprite image with css top and left properties. You can find information about this in the following help article RadEditor for ASP.NET AJAX CSS: Classes and Their Use Abstract as well as see the attached image.
You can check the position of each of the icons in the sprite in the external css files of RadEditor and implement your scenario using the sprite.

Another approach is to download manually the icons from this help article: Introduction to Toolbars.

Best regards,
Rumen
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.
0
Nathan J Pledger
Top achievements
Rank 2
answered on 25 May 2010, 03:12 PM
Thanks Rumen.

No quite as automated as I'd like, so will need some legwork it seems. Not a problem.
Tags
Editor
Asked by
Nathan J Pledger
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Nathan J Pledger
Top achievements
Rank 2
Share this question
or