eWebEditor Home >> eWebEditor Manual V8.0 >> Developer Guide >> JavaScript API

3.7.3 getText

Description

Returns the plain text content in the editor. Plain text means that it contains no HTML codes, yet it contains newline, space, TAB, etc.

Syntax

variable = object.getText();

Example:

The following example will get the plain text currently in the editor named 'myEditor':

var text = myEditor.getText();

The variable 'text' now contains the plain text currently in the editor.