ContextMenu With No Image Alignment Issue

2 posts, 0 answers
  1. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 05 Mar 2010 Link to this post

    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.

    I've attached an image that shows what I'm talking about.
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 10 Mar 2010 Link to this post

    Hi Robert,

    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:
    <head runat="server">
        <style type="text/css">
            .Custom1{background-image:none !important;}
            <telerik:RadEditor ID="RadEditor1" runat="server">
                    <telerik:EditorContextMenu TagName="IMG" Enabled="true">
                        <telerik:EditorTool Name="Custom1" />
                        <telerik:EditorTool Name="SetImageProperties" />
                        <telerik:EditorTool Name="ImageMapDialog" />
                    <img src="#" width="100" height="100" />

    Best wishes,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top