value

sets the content to be displayed in the editor on its initialization

string value;

Example

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>`;
 
webix.ui({
    view: "editor",
    value: text
});

Details

The value is set using the HTML format, which is the default format. If you want to set the value using another format (text), use the built-in setValue method instead.

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.