Home   Pricing

editor.selectControl(element)

Selects a control.

Syntax

editor.selectControl(element)

Parameter

Type: HTMLElement

Required. The element you want to select.

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);        
  5. editor1.selectControl(img)