ContextMenu With No Image Alignment Issue

I've noticed that when you create your own custom ContextMenu commands for the Editor and set ShowIcon="false" that the text is not aligned correctly. The text is shown over the "dark-gray" section reserved for images.

Dobromir

By design, when EditorTool has its property ShowIcon set to false, the icon container is not rendered on the page - that is the reason for the text shifting to the left. As a workaround for this problem I would suggest to have the custom tool defined for the context menu with its icon displayed (ShowIcon="true") and just to remove the background-image of the container, e.g:

<headrunat="server">

<title></title>

<styletype="text/css">

.Custom1{background-image:none !important;}

</style>

</head>

<body>

.......

<telerik:RadEditorID="RadEditor1"runat="server">

<ContextMenus>

<telerik:EditorContextMenuTagName="IMG"Enabled="true">

<telerik:EditorToolName="Custom1"/>

<telerik:EditorToolName="SetImageProperties"/>

<telerik:EditorToolName="ImageMapDialog"/>

</telerik:EditorContextMenu>

</ContextMenus>

<Content>

<imgsrc="#"width="100"height="100"/>

</Content>

</telerik:RadEditor>

.......

</body>

Best wishes,
Dobromir
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.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.