setConfig()
Description
Applies new configuration parameters to RichText
Usage
setConfig(config: { [key:any]: any }): void;
Parameters
config
- (required) the object of RichText configuration parameters. See the full list of properties here
note
The setConfig()
method preserves all the previously set parameters that are not explicitly provided in the setConfig()
method call.
Example
const editor = new richtext.Richtext("#root", {
value: "<h1>Some text</h1>",
// other configuration properties
});
editor.setConfig({
layoutMode: "document"
});
Change log: The method was added in v2.0