getValue

returns the content of the RichText editor in the chosen format

string getValue( [string mode] );

Parameters

modestringthe format of returned content:"html" (default), "markdown" or "text"

Returns

stringthe content of the RichText editor

Example

// getting content in the markdown format
var content = richtext.getValue("markdown");

See also
Back to top