ASP.NET HTML Editor - Top toolbar buttons' methods

You can emulate "clicking" of some top toolbar buttons. The following client-side HTML Editor object methods allow you do it.

Methods of client-side HTML Editor object
Name Description
methodforeColor() - Foreground Color
methodbackColor() - Background Color
methodclearStyles() - Remove Format
methodundo() - Undo (Ctrl-z)
methodredo() - Redo (Ctrl-y)
methodcopy() - Copy
methodpaste() - Paste
methodpasteText() - Paste Plain Text
methodpasteWord() - Paste from MS Word (with cleanup)
methodjustifyLeft() - Align Left
methodjustifyCenter() - Align Center
methodjustifyRight() - Align Right
methodjustifyFull() - Justify
methodremoveAlignment() - Remove alignment and paragraphs
methodorderedList() - Ordered List
methodbulletedList() - Bulleted List
methoddecreaseIndent() - Decrease Indent
methodincreaseIndent() - Increase Indent
methodcreateLink() - Create Link
methodinsertTable() - Insert a Table
methodinsertHR() - Horizontal Rule
methodinsertIMG() - Insert Image
methodinsertIcon() - Insert Icon
methodgetFormat() - Copy Format
methodapplyFormat() - Apply Format
methodtoUpperCase() - Convert to upper case
methodtoLowerCase() - Convert to lower case
methodinsertSpec() - Insert a special character
methodinsertAnchor() - Insert anchor
methodinsertPlaceHolder() - Insert place holder
methodprint() - Print
methodspellCheck() - Spell checker
methodselectAll() - Select All
methodselectNone() - Select None
methodanchorsOn() - Anchors indication
methodplaceHoldersOn() - Place holders indication
methodrtl() - Direction right to left
methodltr() - Direction left to right
methodbold() - Bold
methoditalic() - Italic
methodunderline() - Underline
methodstrikeThrough() - StrikeThrough
methodsubScript() - SubScript
methodsuperScript() - SuperScript
methodincreaseHeight() - Increase the editing panel
methoddecreaseHeight() - Decrease the editing panel
methodpreview() - Preview document appearance
methodinsertForm() - Insert Form
methodinsertCheckBox() - Insert/edit CheckBox
methodinsertRadio() - Insert/edit Radio button
methodinsertTextBox() - Insert/edit TextBox
methodinsertPassword() - Insert/edit Password field
methodinsertHidden() - Insert/edit Hidden field
methodinsertButton() - Insert/edit Button
methodinsertSubmit() - Insert/edit Submit button
methodinsertReset() - Insert/edit Reset button
methodinsertDiv() - Insert DIV
methodcontextMenu() - Get context menu for current cursor position (the only way for Opera)
methodinsertFlash() - Insert Flash.
methodinsertMedia() - Insert Media.
methodmakeNotEditable() - Mark selection as not editable.
methodforeColorClear() - Clear foreground color.
methodbackColorClear() - Clear background color.
methodparagraph() - Make paragraph.
Sample ASP.NET

<ed:Editor id="editor" runat="server">
      <ed:HotKey Function="altS" Alt="true" Char="s" />
<script type="text/JavaScript">
   function altS(editor) { editor.spellCheck(); } // Spell checker is called on Alt-S pressed
</script> Home
HTML Editor Home
HTML Editor Home
Why the best?
Site Map
Examples - 80
Appearance - 10
Full button set
Lite button set
Custom button set
Design-mode textbox
How to fit into small space
Page maker
Default font
Initially without toolbar
Preview mode
"Read only" mode New
Content - 16
Read-only and custom tags
Shadow for Image
External image gallery
Upload images
Copy/paste formatting
Preview Document appearance
Keys used for editing
.NET validation
Documents Generator
Upload documents
Convert to PDF
Editor and database
Spell Checker - 3
Spell checking
Spell Checker dictionaries
Several dictionaries
Localization - 2
RTL support
Integration - 9
Inside Flyout
Inside Grid
Inside Window
With Color PickerNew
Google AJAX Language API New
Inside AJAX Page
Inside CallbackPanel
ASP.NET AJAX ControlToolkit - 5
Collapsible panel
Editor in each TabPanel New
Modal popup
Server-Side API - 13
Content counters
Plain text length control
Show plain text
Enable editor on focus
Set caret position on load
Add CSS files New
Hide HTML Editor until needed
CSS file for quick format
Set HTML view on load
Enable browse button for images
Enable browse button for URLs
Disable Wait message New
Server-Side Events - 5
ClickSubmit event
ClickCancel event
ContentChanged event
Client-Side API - 10
Working with selected text
Set design/HTML view on load
Show/hide HTML Editor
Get/set content
Surround HTML
Insert HTML
Style selected content
Exec command
Query command
'Not Set' in dropdowns New
Customize - 17
Custom editor toolbar in VS
Custom fonts
Custom font sizes
How to add icons
Custom Popup Windows
Custom Buttons
Custom Context Menu
Popup Properties Disabling
Default Table Properties
Custom toggle button
Custom select button
Textarea popup
Custom 'Quote' button New
Show/hide submit button
Show/hide Design/HTML view
Show/hide quick format panel
Width & Height
Knowledge Base - 1
Knowledge Base
Documentation - 23
Server side
HTML Editor properties & events
HTML Editor inner properties
Custom toolbar
Custom fonts
Custom font sizes
Custom Context Menu
Dictionaries for spell checker
Hot keys definition
Disabling Context Menu items
Additional CSS files New
Client side
Main functions and interfaces
Custom Context Menu support
Custom Popup Window support
Top toolbar buttons' methods
State functions
Suppress Context Menu
Spelling dictionary
Dictionary structure
Affix rules
Phonetic rules
Generate phonetic code
How to add new word
Supported browsers
Tutorials - 6
Using the correct path
Autosave implementation
Full custom buttons set
Editor_data for several sites
Use with database
Template XML file use New