Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]Welcome to DevExpress .NET Documentation
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Data.Linq
  [Expand]DevExpress.Web
  [Expand]DevExpress.Web.ASPxGauges
  [Expand]DevExpress.Web.ASPxGauges.Base
  [Expand]DevExpress.Web.ASPxGauges.Scripts
  [Expand]DevExpress.Web.ASPxHtmlEditor
  [Expand]DevExpress.Web.ASPxHtmlEditor.Localization
  [Collapse]DevExpress.Web.ASPxHtmlEditor.Scripts
   [Expand]ASPxClientCommandConsts Class
   [Collapse]ASPxClientHtmlEditor Class
     ASPxClientHtmlEditor Members
     ASPxClientHtmlEditor Constructor
    [Collapse]ASPxClientHtmlEditor Events
      ActiveTabChanged Event
      ActiveTabChanging Event
      BeforePaste Event
      BeginCallback Event
      CallbackError Event
      CommandExecuted Event
      CommandExecuting Event
      ContextMenuShowing Event
      CustomCommand Event
      CustomDataCallback Event
      CustomDialogClosed Event
      CustomDialogClosing Event
      CustomDialogOpened Event
      DialogClosed Event
      DialogClosing Event
      DialogInitialized Event
      EndCallback Event
      GotFocus Event
      HtmlChanged Event
      LostFocus Event
      SelectionChanged Event
      SpellingChecked Event
      Validation Event
    [Expand]ASPxClientHtmlEditor Methods
   [Expand]ASPxClientHtmlEditorAudioDialog Class
   [Expand]ASPxClientHtmlEditorBeforePasteEventArgs Class
    ASPxClientHtmlEditorBeforePasteEventHandler Delegate
   [Expand]ASPxClientHtmlEditorChangeAudioCommandArguments Class
   [Expand]ASPxClientHtmlEditorChangeElementPropertiesDialog Class
   [Expand]ASPxClientHtmlEditorChangeFlashCommandArguments Class
   [Expand]ASPxClientHtmlEditorChangeHtml5MediaElementCommandArguments Class
   [Expand]ASPxClientHtmlEditorChangeImageCommandArguments Class
   [Expand]ASPxClientHtmlEditorChangeMediaElementCommandArguments Class
   [Expand]ASPxClientHtmlEditorChangeVideoCommandArguments Class
   [Expand]ASPxClientHtmlEditorChangeYouTubeVideoCommandArguments Class
   [Expand]ASPxClientHtmlEditorCommandArguments Class
   [Expand]ASPxClientHtmlEditorCommandEventArgs Class
    ASPxClientHtmlEditorCommandEventHandler Delegate
   [Expand]ASPxClientHtmlEditorCommandExecutingEventArgs Class
    ASPxClientHtmlEditorCommandExecutingEventHandler Delegate
   [Expand]ASPxClientHtmlEditorCommandStyleSettings Class
   [Expand]ASPxClientHtmlEditorCustomDialogClosedEventArgs Class
    ASPxClientHtmlEditorCustomDialogClosedEventHandler Delegate
   [Expand]ASPxClientHtmlEditorCustomDialogCloseEventArgsBase Class
   [Expand]ASPxClientHtmlEditorCustomDialogClosingEventArgs Class
    ASPxClientHtmlEditorCustomDialogClosingEventHandler Delegate
   [Expand]ASPxClientHtmlEditorCustomDialogEventArgs Class
    ASPxClientHtmlEditorCustomDialogEventHandler Delegate
   [Expand]ASPxClientHtmlEditorDialogBase Class
   [Expand]ASPxClientHtmlEditorDialogClosedEventArgs Class
    ASPxClientHtmlEditorDialogClosedEventHandler Delegate
   [Expand]ASPxClientHtmlEditorDialogCloseEventArgs Class
   [Expand]ASPxClientHtmlEditorDialogClosingEventArgs Class
    ASPxClientHtmlEditorDialogClosingEventHandler Delegate
   [Expand]ASPxClientHtmlEditorDialogInitializedEventArgs Class
    ASPxClientHtmlEditorDialogInitializedEventHandler Delegate
   [Expand]ASPxClientHtmlEditorEditElementDialog Class
   [Expand]ASPxClientHtmlEditorFlashDialog Class
   [Expand]ASPxClientHtmlEditorImageDialog Class
   [Expand]ASPxClientHtmlEditorInsertAudioCommandArguments Class
   [Expand]ASPxClientHtmlEditorInsertFlashCommandArguments Class
   [Expand]ASPxClientHtmlEditorInsertImageCommandArguments Class
   [Expand]ASPxClientHtmlEditorInsertLinkCommandArguments Class
   [Expand]ASPxClientHtmlEditorInsertTableCommandArguments Class
   [Expand]ASPxClientHtmlEditorInsertTableDialog Class
   [Expand]ASPxClientHtmlEditorInsertVideoCommandArguments Class
   [Expand]ASPxClientHtmlEditorInsertYouTubeVideoCommandArguments Class
   [Expand]ASPxClientHtmlEditorLinkDialog Class
   [Expand]ASPxClientHtmlEditorMediaDialogBase Class
   [Expand]ASPxClientHtmlEditorMediaPreloadMode Class
   [Expand]ASPxClientHtmlEditorPasteFromWordDialog Class
   [Expand]ASPxClientHtmlEditorPlaceholderDialog Class
   [Expand]ASPxClientHtmlEditorSelection Class
   [Expand]ASPxClientHtmlEditorTabCancelEventArgs Class
    ASPxClientHtmlEditorTabCancelEventHandler Delegate
   [Expand]ASPxClientHtmlEditorTabEventArgs Class
    ASPxClientHtmlEditorTabEventHandler Delegate
   [Expand]ASPxClientHtmlEditorTableCellPropertiesCommandArguments Class
   [Expand]ASPxClientHtmlEditorTableCellPropertiesDialog Class
   [Expand]ASPxClientHtmlEditorTableColumnPropertiesCommandArguments Class
   [Expand]ASPxClientHtmlEditorTableColumnPropertiesDialog Class
   [Expand]ASPxClientHtmlEditorTableDialog Class
   [Expand]ASPxClientHtmlEditorTableDialogBase Class
   [Expand]ASPxClientHtmlEditorTableElementPropertiesDialog Class
   [Expand]ASPxClientHtmlEditorTablePropertiesCommandArguments Class
   [Expand]ASPxClientHtmlEditorTableRowPropertiesCommandArguments Class
   [Expand]ASPxClientHtmlEditorTableRowPropertiesDialog Class
   [Expand]ASPxClientHtmlEditorValidationEventArgs Class
    ASPxClientHtmlEditorValidationEventHandler Delegate
   [Expand]ASPxClientHtmlEditorVideoDialog Class
   [Expand]ASPxClientHtmlEditorYouTubeDialog Class
  [Expand]DevExpress.Web.ASPxPivotGrid
  [Expand]DevExpress.Web.ASPxPivotGrid.Data
  [Expand]DevExpress.Web.ASPxPivotGrid.HtmlControls
  [Expand]DevExpress.Web.ASPxPivotGrid.Scripts
  [Expand]DevExpress.Web.ASPxRichEdit
  [Expand]DevExpress.Web.ASPxRichEdit.Localization
  [Expand]DevExpress.Web.ASPxRichEdit.Scripts
  [Expand]DevExpress.Web.ASPxScheduler
  [Expand]DevExpress.Web.ASPxScheduler.Commands.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Controls
  [Expand]DevExpress.Web.ASPxScheduler.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Drawing
  [Expand]DevExpress.Web.ASPxScheduler.Localization
  [Expand]DevExpress.Web.ASPxScheduler.Reporting
  [Expand]DevExpress.Web.ASPxScheduler.Scripts
  [Expand]DevExpress.Web.ASPxSpellChecker
  [Expand]DevExpress.Web.ASPxSpellChecker.Localization
  [Expand]DevExpress.Web.ASPxSpellChecker.Scripts
  [Expand]DevExpress.Web.ASPxSpreadsheet
  [Expand]DevExpress.Web.ASPxSpreadsheet.Localization
  [Expand]DevExpress.Web.ASPxSpreadsheet.Scripts
  [Expand]DevExpress.Web.ASPxTreeList
  [Expand]DevExpress.Web.ASPxTreeList.Internal
  [Expand]DevExpress.Web.ASPxTreeList.Localization
  [Expand]DevExpress.Web.ASPxTreeList.Scripts
  [Expand]DevExpress.Web.Captcha
  [Expand]DevExpress.Web.Data
  [Expand]DevExpress.Web.Internal
  [Expand]DevExpress.Web.Localization
  [Expand]DevExpress.Web.Mvc
  [Expand]DevExpress.Web.Mvc.BinderSettings
  [Expand]DevExpress.Web.Mvc.Controllers
  [Expand]DevExpress.Web.MVC.Scripts
  [Expand]DevExpress.Web.Mvc.UI
  [Expand]DevExpress.Web.Office
  [Expand]DevExpress.Web.Office.Internal
  [Expand]DevExpress.Web.Rendering
  [Expand]DevExpress.Web.Scripts
  [Expand]DevExpress.XtraCharts.Web
  [Expand]DevExpress.XtraCharts.Web.Designer
  [Expand]DevExpress.XtraCharts.Web.Scripts
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

ASPxClientHtmlEditor.CustomCommand Event

Enables you to implement a custom command's logic.

Namespace:DevExpress.Web.ASPxHtmlEditor.Scripts
Assembly:JavaScript

Expanded Syntax

Expanded Event Data

The event handler receives an argument of type ASPxClientHtmlEditorCommandEventArgs containing data related to this event.

The following ASPxClientHtmlEditorCommandEventArgs properties provide information specific to this event.
Property Description
commandName Gets the name of the processed command.
parameter Gets an optional parameter that complements the processed command.

Expanded Remarks

The CustomCommand event occurs on the client side when executing a command whose name (returned by the ASPxClientHtmlEditorCommandEventArgs.commandName property) doesn't coincide with any default command names listed by the ASPxClientCommandConsts object's constants.

Handle the CustomCommand event to implement the required logic for the executed custom command. You can, for instance, manually execute a set of default commands by handling this event.

Expanded Example

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E3980.

The example below demonstrates how to manipulate ASPxHtmlEditor View Areas by CustomToolbarButton.

Expanded See Also

Is this topic helpful?​​​​​​​