Problems with ContextMenu!

Last post 07-10-2007, 6:07 AM by koki. 2 replies.
Sort Posts: Previous Next
  •  07-05-2007, 8:01 AM 31293

    Problems with ContextMenu!

    Hello there,

    I seem to have some extreme problems the context menu even if I follow your guidelines on how to edit it.

    First and foremost, I use my own config-file by setting the ConfigurationPath in my Editor. In the editor I set the EnableContextMenu to false, and the context menu dissapears. That's fine.

    But when I set it to true, and change my items to false in my config, they simply don't dissapear?

      <contextmenu>
        <item name="Editing" value="False"/>
        <item name="Format" value="False"/>
        <item name="Insert" value="False"/>
        <item name="InsertAdvanced" value="False"/>
        <item name="InsertFiles" value="False"/>
        <item name="InsertForms" value="False"/>
        <item name="Relative" value="False"/>
        <item name="Tags" value="False"/>
        <item name="Verbs" value="False"/>
      </contextmenu>

    They are still there. However, if I simply remove them from my common-config, they do dissapear. What is the correct action here?

    I also have another problem. I'm trying to disable/remove som options which is possible through the common-config. However, I want to disable some options on the "third-level" menu, that is when you click the tags option.

    For example:

    Tags -> TD -> xxx

    So in this menu I want to disable anything besides the "properties" value. How do I do this?

    I have Cute Editor 6.0 and I also have a full license if it matters.

    Edit: what also is strange is that my editor does not have the following attributes:

    EnableContextMenuEditing
    EnableContextMenuFormat

    etc.

    It only has EnableContextMenu!!

    Best Regards

    koki

  •  07-06-2007, 4:24 PM 31353 in reply to 31293

    Re: Problems with ContextMenu!

    koki,
     
    In the version 6.0, you need to use the following property to control the context menu.
     

    Editor.ContextMenuMode Property

    Determines the appearance and behavior of menus associated with the Context menu.

    By default it uses the AutoConfigure value.
     
    For example, if you use the AutoConfigure.Default, CuteEditor will use the following context menu configuration file:
     
    CuteSoft_Client\CuteEditor\Configuration\ContextMenuMode\Default.config
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  07-10-2007, 6:07 AM 31433 in reply to 31353

    Re: Problems with ContextMenu!

    Hi Adam,

    missed that completely, and it makes sense.

    However, that does still not explain how I disable the "alternate" menu.

    For example, in my Default.config I disabled the style property. It is gone as it should be.

    However, when I insert a table, right-click, I get a tag option which is fine. This tag option however spans into yet another menu
    which has its own style-property.

    Can I disable this one, or is it possible at all?

    BR

View as RSS news feed in XML