Describe how the EventArgs e.commandName parameter is filled from custom toolbar items in:
- The Menu mode (from the CustomToolbarButton.CommandName property):
ASPx<dx:ASPxHtmlEditor ... ToolbarMode="Menu">
<Toolbars>
<dx:HtmlEditorToolbar>
<Items>
<dx:CustomToolbarButton CommandName="CustomCommandMenuMode"></dx:CustomToolbarButton>
</Items>
</dx:HtmlEditorToolbar>
</Toolbars>
<ClientSideEvents CustomCommand="OnCustomCommand" />
</dx:ASPxHtmlEditor>
- The Ribbon mode (from the RibbonItemBase.Name property):
ASPx<dx:ASPxHtmlEditor ... ToolbarMode="Ribbon">
<RibbonTabs>
<dx:HEHomeRibbonTab>
<Groups>
<dx:RibbonGroup>
<Items>
<dx:RibbonButtonItem Name="CustomCommandRibbonMode">
</dx:RibbonButtonItem>
</Items>
</dx:RibbonGroup>
</Groups>
</dx:HEHomeRibbonTab>
</RibbonTabs>
<ClientSideEvents CustomCommand="OnCustomCommand" />
</dx:ASPxHtmlEditor>
JavaScriptfunction OnCustomCommand(s, e) {
alert(e.commandName);
}