RichTextEditor Demo
Home Pricing

## editor.insertHTML(text)

This method is used for inserting the specified HTML into a range within an editor document. If anything is selected, the selection is replaced with the new HTML and text.

#### Syntax

`editor.insertHTML(text)`

###### Parameter

`Type: String`

`Required. The text you want to insert.`

## Example:

1. var editor1 = new RichTextEditor("#div_editor1");
2. editor1.insertHTML("<b>hello world</b>");
3. editor1.collapse(false)