eWebEditor Home >> eWebEditor Manual V11.2 >> 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.