Documentation

editor.getDocument()

Returns the iframes document object.

Syntax

editor.getDocument()

Return value

Type: Object

Document Iframe DOM document object.

Example usage

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