getValue

returns the value of Rich Text Editor

void getValue( [string type] );
typestringthe format of the applied value. It can be: "html", "text", "raw" (Richtext AST content)

Example

const value = $$("editor").getValue();
// -> '<p>Sample text</p>'

Related samples

Details

The method returns the content of the widget in the specified format. If the type parameter is not provided, the method returns the content as an HTML string.

See also
Back to top