Disable Image Properties

7 posts, 0 answers
  1. Scott
    Scott avatar
    47 posts
    Member since:
    Mar 2006

    Posted 21 Dec 2007 Link to this post

    Is there a way to disable the Image Properties (right click on image) within the Editor?  In our app, images are resized and formatted on upload so there's no need for users to use it.
  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 23 Dec 2007 Link to this post

    Hello Scott,

    You can use the ContextMenus innertag collection to predefine the items in the context menu that applies to the IMG tag like this:

      <telerik:radeditor id="RadEditor1" runat="server">
          <ImageManager ViewPaths="~/Images" UploadPaths="~/Images" />
          <ContextMenus>
              <telerik:EditorContextMenu TagName="
    IMG" Enabled="true">
                 <telerik:EditorTool Name="ImageMapDialog" />     
              </telerik:EditorContextMenu>
          </ContextMenus>

      </telerik:radeditor>

    Put the desired editor tools inside the <telerik:EditorContextMenu TagName="IMG" Enabled="true"> tags.


    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Scott
    Scott avatar
    47 posts
    Member since:
    Mar 2006

    Posted 02 Jan 2008 Link to this post

    Thanks
  5. Steve Napurano
    Steve Napurano avatar
    40 posts
    Member since:
    Aug 2009

    Posted 01 Jun 2011 Link to this post

    Can I see an example?
    All I want to show is width and height and nothing else.

    Cant find example.

    Thanks
  6. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 02 Jun 2011 Link to this post

    Hi Steve,

    Where do you want to show the width and height options only? If you want to only keep the Width and Height fields inside the Image Options dialog then you can see how to do that in the EditorDialogs/SetImageProperties.ascx dialog in the following live demo: Customize Built-in Dialogs.
    You can also try the InsertImage lite dialog of RadEditor - see Dialogs demo.

    If your scenario is other, please provide more information about the requested feature.

    Best regards,
    Rumen
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  7. Steve Napurano
    Steve Napurano avatar
    40 posts
    Member since:
    Aug 2009

    Posted 02 Jun 2011 Link to this post

    HI, see attached.

    I only want to show height and width, I dont want users fiddling with any other properties.
    Also, how do I get the menu to NOT overlap the pop up window

    See attached
  8. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 06 Jun 2011 Link to this post

    Hello Steve Napurano,

    Did you see the Customize Built-in Dialogs demo? It provides guidance how to hide the unwanted options inside the LinkManager. You should open the SetImageProperties.ascx file and edit its content to hide the desired fields using for example style="display:none" attribute.

    You can try to change the z-index of RadWindow based dialogs of RadEditor for ASP.NET AJAX using the following CSS classes:

    .RadWindow.RadWindow_Default.rwNormalWindow.rwTransparentWindow
    {
    z-index: 110000!important;
    }
    .RadWindow.RadWindow_Default.rwNormalWindow.rwTransparentWindow.rwInactiveWindow
    {
    z-index: 10990!important;
    }

    The above classes work for the Default skin. If you use another skin you should update the Default string in them with the used skin name.

    Black Skin:

    .RadWindow.RadWindow_Black.rwNormalWindow.rwTransparentWindow
    {
      z-index: 110000!important;
    }
    .RadWindow.RadWindow_Black.rwNormalWindow.rwTransparentWindow.rwInactiveWindow
    {
    z-index: 10990!important;
    }


    Greetings,
    Rumen
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017