specifies a value for Rich Text Editor
| value | string | the value to be set for the component |
| type | string | optional, the format of the applied value. It can be: "html", "text", "markdown", "raw" (Richtext AST content) |
const text =
`<p>Hello World</p>
<p><a href="https://docs.webix.com/desktop__richtext.html">Rich Text Editor</a></p>
<p>Sample text</p>`;
$$("editor").setValue(text);
If the type parameter isn't specified, the method treats the content according to the current datatype parameter (HTML by default).
Note that the markdown parser of Rich Text Editor doesn't provide support for nested structures.
It means that such complex structures as, e.g. bold font style inside the italics one, or a link inside a list,
or multi-level lists won't work correctly while being pasted, added via the setValue() method
with the "markdown" format or imported in an .md file.