Re: disable right-click formatting options

  •  12-08-2004, 10:36 AM

    Re: disable right-click formatting options

    chilton,

    You can also change the contextmenu setting by  modifying Cute Editortoolbar configuration files.

    Configuration file Structure   

    The Cute Editor toolbar configuration files, which contain XML, specify the toolbar configuration information of the Cute Editor instance. These configurations are applied using AutoConfigure property. All the configuration files can be found in the /CuteEditor/Configuration folder.


    <contextmenu> Element

    Specify the context menu configuration information of the Cute Editor instance.

     contextmenu: <item> Element

    Represent a group of context menus.

    Attribute

    Description

    name

    This attribute contains the name of context menu group.

     

    Group Menu Name

    Menu Items

    Editing

    Undo, Redo, Cut, Copy, Paste, SelectAll, Edit

    Format

    Bold, Italic, Underline, StrikeThrough, ForeColor, BackColor, Justify, JustifyLeft, JustifyCenter, JustifyRight, JustifyFull, JustifyNone, Indent, Outdent, Superscript, Subscript, RemoveFormat

    Insert

    ImageGalleryByBrowsing, InsertImage, InsertFlash, InsertMedia, InsertDocument, InsertTemplate, InsertTable, InsertHorizontalRule, InsertForm, Advanced

    InsertAdvanced

    Paragraph, LineBreak, OrderedList, UnorderedList, InsertFieldSet, InsertText

    InsertFiles

    ImageGalleryByBrowsing, InsertImage, InsertFlash, InsertMedia, InsertDocument

    InsertForms

    InsertForm, InsertInputText, InsertTextBox, InsertRadioBox, InsertCheckBox, InsertListBox, InsertDropDown, InsertInputImage, InsertInputSubmit, InsertInputReset, InsertInputReset, InsertInputReset, InsertInputButton

    Relative Tags

    Find and Edit the nearest element

    Verbs

    element Verbs


    value

    Specifies whether the context menu group is enabled.  If false, the context menu group will be disabled.

     

    Disable all the contextmenu example:

     <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>...

     

    Check the following link for more information:

    http://cutesoft.net/developer+guide/Toolbar_Edit_the_static_configuration.htm


    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

View Complete Thread