editDocument

Availability: >= 3.0

Type: Object Property

Description: This property holds the document object for the design and source view. It is a regular HTML document object and accepts all the same properties, methods and events that any other document would.

Syntax:

editor.editDocument

You can use this property to manipulate the editor document. Because this is a standard document object you may use standard methods for manipulating it.

Because Internet Explorer requires a different API for adding events to that used by standards compliant browsers such as FireFox WysiwygPro provides a cross browser event API available through the WPro.events object.

When the editor is in design view this document contains the design view HTML. When the editor is in source view it contains the syntax highlighted html code.