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

Disable Image Properties

6 Answers 95 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 2
Scott asked on 21 Dec 2007, 08:39 PM
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.

6 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Dec 2007, 12:59 PM
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
0
Scott
Top achievements
Rank 2
answered on 02 Jan 2008, 09:00 PM
Thanks
0
Steve Napurano
Top achievements
Rank 1
answered on 01 Jun 2011, 05:43 AM
Can I see an example?
All I want to show is width and height and nothing else.

Cant find example.

Thanks
0
Rumen
Telerik team
answered on 02 Jun 2011, 01:09 PM
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.

0
Steve Napurano
Top achievements
Rank 1
answered on 02 Jun 2011, 06:47 PM
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
0
Rumen
Telerik team
answered on 06 Jun 2011, 02:41 PM
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.

Tags
Editor
Asked by
Scott
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Scott
Top achievements
Rank 2
Steve Napurano
Top achievements
Rank 1
Share this question
or