Client Center
Support
Home
Demos
Features
Document
Pricing
Download
Examples
Home
Examples
Examples
Basic Examples
Default toolbar config
Skinning the editor
Simple Editor
Multiple editors
Auto adjusting height
Readonly
NonEditable contents
Powerful table support
Plain text output
Cleaning pasted content
XHTML output
UI language
Showing rulers
Enter mode
Setting the max length
Advanced Topics
1 editor, multiple edit areas
Relative/Absolute URLs
BBCode output
Editor inside of a dialog
Editor inside of UI tabs
Editing full page
Context menu mode
Plain text switcher
Filtering HTML code
Custom content css
JavaScript API
Programmatic Security
Adding custom buttons (simple)
Adding custom buttons (dialog)
Adding custom buttons (server)
Formatting bold button
Capturing save event
Populating dropdown menu
Editor as image selector
Editor as file selector
JavaScript API
This example shows you how to use RichTextEditor JavaScript API to customize the application.
Try click the "get HTML" button
get HTML
set HTML
insert HTML
set Active Tab to Code
set Focus
attach Event(TextChanged)
detach Event(TextChanged)
move Home
move End
Bold
Italic
Delete
Undo
Redo
Underline
Linethrough
Overline
Superscript
Subscript
Ucase
Lcase
RemoveFormat
CleanCode
JustifyLeft
JustifyCenter
JustifyRight
JustifyFull
JustifyNone
Left to Right
Right to Left
InsertWbr
InsertDiv
InsertParagraph
InsertHorizontalRule
InsertPageBreak
InsertTopLine
InsertBottomLine
UnLink
InsertOrderedList
InsertUnorderedList
ExecCommand