RichTextEditor Demo
Home Pricing

## editor.insertByTagName(tagname)

Inserts an element with the specified tag name.

#### Syntax

`editor.insertByTagName(tagname)`

###### Parameter

`Type: String`

`Required. The tagname of the elements you want to insert.`

###### Return Value

`Type: HTMLElement`

`The HtmlElement that was just inserted.`

## Example:

1. var editor1 = new RichTextEditor("#div_editor1");
2. var img=editor1.insertByTagName("IMG");
3. img.src="images/editor-image.png";