Home   Pricing

editor.getEditable()

Returns the root element of the editable area.

Syntax

editor.getEditable()

Return value

Type: HTMLElement

The root element of the editable area.

Example:

  1. var editor1 = new RichTextEditor("#div_editor1");   
  2. editor1.setHTMLCode("hello world");  
  3. var element=editor1.getEditable();  
  4. element.style.color="red";