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 hasn't been passed, the method returns a string HTML content.

See also
Back to top