returns the value of Rich Text Editor
| type | string | the format of the applied value. It can be: "html", "text", "markdown", "raw" (Richtext AST content) |
const value = $$("editor").getValue();
// -> '<p>Sample text</p>'
If the type parameter isn't specified, the method returns the content of the widget in the format specified by the current datatype parameter (HTML by default).
Note that the markdown parser of Rich Text Editor doesn't provide support for nested structures (except bold inside italic).
This means that combinations such as bold inside a link, italic inside a list, or multi-level lists will not render
correctly while being pasted, added via the setValue() method or inserted via the insertValue() method
with the "markdown" format or imported in an .md file.