Remove the Image Map Editor from everything

5 posts, 1 answers
  1. Cameron
    Cameron avatar
    28 posts
    Member since:
    Oct 2011

    Posted 13 Feb 2012 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 15 Feb 2012 Link to this post

    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 >>
  3. Cameron
    Cameron avatar
    28 posts
    Member since:
    Oct 2011

    Posted 20 Feb 2012 Link to this post

    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
  4. Answer
    Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 23 Feb 2012 Link to this post

    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.
  5. Cameron
    Cameron avatar
    28 posts
    Member since:
    Oct 2011

    Posted 13 Mar 2012 Link to this post

    Hi Rumen,

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

    Thanks,
    Cameron
Back to Top