get-flattened-text in editor<%>

Returns the contents of the editor in text form. See Getting Text for a discussion of flattened vs. non-flattened text.