Home   Pricing

editor.insertElement(element)

Inserts an element. This element must be created by editor.document.

Syntax

editor.insertElement(element)

Parameter

Type: HTMLElement

Required. The new element to insert.

Example:

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