Returns the plain text content in the editor. Plain text means that it contains no HTML codes, yet it contains newline, space, TAB, etc.
variable = object.getText();
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.