Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[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.Controls
  [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.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]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]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

ASPxClientHtmlEditor.CommandExecuting Event

Occurs before a default or custom command has been executed and allows you to cancel the action.

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

Expanded Syntax

Expanded Event Data

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

The following ASPxClientHtmlEditorCommandExecutingEventArgs properties provide information specific to this event.
Property Description
cancel Gets or sets a value indicating whether the action which raised the event should be canceled.
commandName Gets the name of the processed command.
parameter Gets an optional parameter that complements the processed command.

Expanded Remarks

Use the CommandExecuting event handler to determine the processed command and cancel the action if needed.

To cancel the processed command, set the ASPxClientCancelEventArgs.cancel property to true.

After a command has been executed, the CommandExecuted event is raised.

Note

Do not use the CommandExecuting event handler to change the editor content HTML code or selection.

Expanded See Also

How would you rate this topic?​​​​​​​