ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - HTML Editor - Full context menu items set

Here you can see how to set all available context menu items for the EditPanel in Editor control (as it is by default).
If you don't want to use the full items set, just copy the text below and remove context menu items you don't want to see.

Also you can change default values of some properties for any context menu item.
For example, you have code file with customized 'Image properties' popup (CustomPopups.SmallImageProperties class) in App_Code folder and you want to use it for image properties editing.
Just edit the line with the EditImageItem item:

<obout:EditImageItem runat="server" RelatedPopupType="CustomPopups.SmallImageProperties, App_Code" />
<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.HTMLEditor" TagPrefix="obout" %>
<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.HTMLEditor.ContextMenu" TagPrefix="obout" %>
<obout:Editor runat="server" Id="editor" Height="500px" Width="100%">
      <EditPanel><ContextMenu UsePredefinedItems="false" >
            <AddItems>
                  <obout:MakeEditable runat="server" />
                  <obout:EditOrderedListItem runat="server" />
                  <obout:EditBulletedListItem runat="server" />
                  <obout:EditRadioItem runat="server" />
                  <obout:RemoveRadioItem runat="server" />
                  <obout:EditCheckBoxItem runat="server" />
                  <obout:RemoveCheckBoxItem runat="server" />
                  <obout:EditResetItem runat="server" />
                  <obout:RemoveResetItem runat="server" />
                  <obout:EditSubmitItem runat="server" />
                  <obout:RemoveSubmitItem runat="server" />
                  <obout:EditButtonItem runat="server" />
                  <obout:RemoveButtonItem runat="server" />
                  <obout:EditHiddenItem runat="server" />
                  <obout:RemoveHiddenItem runat="server" />
                  <obout:EditPasswordItem runat="server" />
                  <obout:RemovePasswordItem runat="server" />
                  <obout:EditTextBoxItem runat="server" />
                  <obout:RemoveTextBoxItem runat="server" />
                  <obout:EditDivItem runat="server" />
                  <obout:RemoveDivItem runat="server" />
                  <obout:RemoveDivWithoutContentItem runat="server" />
                  <obout:EditMediaItem runat="server" />
                  <obout:RemoveMediaItem runat="server" />
                  <obout:EditFlashVideoItem runat="server" />
                  <obout:EditFlashItem runat="server" />
                  <obout:RemoveFlashItem runat="server" />
                  <obout:EditImageItem runat="server" />
                  <obout:RemoveImageItem runat="server" />
                  <obout:EditAnchorItem runat="server" />
                  <obout:RemoveAnchorItem runat="server" />
                  <obout:EditLinkItem runat="server" />
                  <obout:RemoveLinkItem runat="server" />
                  <obout:InsertColumnBeforeItem runat="server" />
                  <obout:InsertColumnAfterItem runat="server" />
                  <obout:EditTableItem runat="server" />
                  <obout:EditCellItem runat="server" />
                  <obout:InsertRowAboveItem runat="server" />
                  <obout:InsertRowBelowItem runat="server" />
                  <obout:RemoveColumnItem runat="server" />
                  <obout:RemoveRowItem runat="server" />
                  <obout:RemoveTableItem runat="server" />
                  <obout:EditFormItem runat="server" />
                  <obout:RemoveFormItem runat="server" />
                  <obout:RemoveFormWithoutContentItem runat="server" />
                  <obout:CutItem runat="server" />
                  <obout:CopyItem runat="server" />
                  <obout:PasteItem runat="server" />
                  <obout:PasteTextItem runat="server" />
                  <obout:PasteWordItem runat="server" />
                  <obout:SelectAllItem runat="server" />
            </AddItems>
      </ContextMenu></EditPanel>
</obout:Editor>

"I just bought your controls and I must say they are great! I used them during college and I recommended them to my company."

Damian Lobalzo

Random testimonial   All testimonials