Documentation

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 usage

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