Topbar
Topbar
Client Center
Support
Home
Demos
Features
Blazor Editor
Document
Pricing
Download
Examples
Home
Examples
Examples
Basic Examples
Default Toolbar
Basic Editor
Multiple editors
Skinning RichTextEditor
Powerful table support
Cleaning pasted content
UI language
Setting the max length
Enter Key
XHTML output
Editor Size
Editor Size
Editor Auto Grow
Resizing Customization
Inserting Content
Paste from Word
Paste from Excel
Paste plain text
Embed Video
Drag and Drop
Drag & drop images
Drag & drop Content
APIs
JavaScript API
Formatting bold button
Read-Only Mode
Advanced Topics
1 editor, multiple edit areas
Relative/Absolute URLs
BBCode output
Editing full page
Context menu mode
Plain Text Switcher
Filtering HTML code
Adding watermark to images
Custom content css
Programmatic Security
Create PDF files
RTF to HTML, HTML to RTF
Editor as image selector
Editor as file selector
Adding custom buttons (simple)
Adding custom buttons (dialog)
Adding custom buttons (server)
Populating dropdown menu
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