Home   Pricing

editor.getDocument()

Returns the iframes document object.

Syntax

editor.getDocument()

Return value

Type: Object

Document Iframe DOM document object.

Example:

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