value
Description
Optional. Specifies the initial value (content) displayed within the editor area of RichText
tip
If you want to set the value (content) using custom format, use the built-in setValue()
method.
Usage
value?: string;
Example
new richtext.Richtext("#root", {
value: "<h1>some value</h1>" // sets the default value (HTML format)
// other configuration properties
});
Change log: The property was added in v2.0
Related articles: Configuration
Related sample: RichText. Initialization