Free Trial Buy Now

Client-Side API - Client-Side Commands

Cut (Ctrl+X)
Copy (Ctrl+C)
Paste (Ctrl+V)
Undo (Ctrl+Z)
Redo (Ctrl+Y)
Remove Format
Superscript
Subscript
Indent
Outdent
Insert Link
Remove Link
Insert Image
Insert Table...v
v
v
Bold (CTRL+B)
Italic (Ctrl+I)
Underline
Strikethrough
Align Left
Align Center
Align Right
Justify
Back Color
v
Fore Color
v
Paste Template
Delete All
Design
HTML
Preview

Description

This demo illustrates how to execute custom commands within the ASPxHtmlEditor on the client.

A custom command is a sequence of calls to standard editor commands. Custom commands can be executed by handling the editor's client CustomCommand event. This event fires if a command name associated with the clicked toolbar item doesn't coincide with any standard predefined editor command.

In this demo, two custom commands are implemented: one deletes the editor's content, and another inserts an e-mail template text. To initiate these commands, a custom toolbar with two items is created. Custom item command names are 'deleteall' and 'pasteemailtemplate', respectively. It is also demonstrated how to assign custom keyboard shortcuts to these commands by defining corresponding items within the editor's Shortcuts collection.

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.