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.
<table cellspacing="4" cellpadding="4" border="0"><tr><td><p><img src="/uploads/j0262681.jpg" alt="" /></p></td> <td> <p>Rich Text Editor is the industry-leading online html editor and we are proud that Rich Text Editor always serves as an inspiration for other editors. Now version 8.0 is designed from a different point of view from old versions and most editors.</p></td></tr> <tr> <td> <p> <img src="/uploads/PH02366J.jpg" alt="" /></p></td> <td> <p>Rich Text Editor toolbar is completely configurable and it is also effortless to implement. You just need a couple lines of code to add this editor to .NET and MVC applications.</p></td></tr></table>
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