Signature
Parameters
A partial configuration object containing the properties to update. You can specify:
markup,style,script- Editor configurationstitle,description- Project metadatalanguages- Enabled languagesstylesheets,scripts- External resourcesprocessors- CSS processorsactiveEditor- Which editor to showmode,theme- Display settings- Any other Config property
Returns
A promise that resolves to the complete Config object after the new configuration has been loaded.
Usage
Load New Code
Change Languages
Add External Resources
Update Project Metadata
Enable CSS Processors
Partial Updates
Configure Custom Settings
Notes
- The configuration is merged with the current config, not replaced entirely.
- To completely replace editor content, specify both
languageandcontent. - If you only specify
contentwithoutlanguage, it updates the content in the current language. - The playground automatically recompiles and displays results after loading the new configuration.
- If the playground is not yet loaded, calling this method will load it first.
Related Methods
getConfig()- Get the current configurationrun()- Manually run code after configuration changesgetCode()- Get code and compiled output