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

Remove the Image Map Editor from everything

4 Answers 141 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Cameron
Top achievements
Rank 1
Cameron asked on 13 Feb 2012, 06:33 PM
Hi,

This should be a relatively quick question to answer.

We want to disable the image map editor from everything within the rad editor.
I've already removed it from the context menu of an image within the rad editor by modifying the Tools of the RadEditors ContextMenus so that only the Properties option shows up.
But I want to ensure that an image map cannot be made anywhere else.

Thanks,
Cameron

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 15 Feb 2012, 11:28 AM
Hello Cameron,

The Image Map option is available only in the Toolbar and in the Context Menus. So if you have removed it from the context menus do the same for the toolbar as well. You can see how to remove toolbar buttons in this article: Removing Toolbar Buttons.

All the best,
Rumen
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Cameron
Top achievements
Rank 1
answered on 20 Feb 2012, 05:11 PM
Hi Rumen,

I just had a chance to look at the link you provided. I noticed that it showed me how to remove tools from the rad editor programmatically, but it doesn't show how to remove them using the Tools.xml file. As far as I can tell the Tools.xml file shows me how to add, but not remove. 

I was able to remove the Image Map Dialog in the code, but I have no idea how to do that using the Tools.xml file.

Is there a way to do it?

Also, I've yet to see the Image Map Dialog in the toolbar. I've only ever seen it via the context menu of an image. 

How would it appear in the toolbar?

Thanks,
Cameron
0
Accepted
Rumen
Telerik team
answered on 23 Feb 2012, 12:58 PM
Hi,

The Tools.xml file is a standard XML file which you can modify programmatically or manually.

Just open the Tools.xml file, locate the ImageMapDialog tool tag (<tool name="ImageMapDialog"/>) and delete it. Save the file and the Image Map dialog button will be not appear on the toolbar.

Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Cameron
Top achievements
Rank 1
answered on 13 Mar 2012, 07:43 PM
Hi Rumen,

Since the image map editor was never in the Tools.xml file to begin with, I guess all is good.

Thanks,
Cameron
Tags
Editor
Asked by
Cameron
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Cameron
Top achievements
Rank 1
Share this question
or