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", "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 tries to treat content as HTML.