Configuration Reload
Overview
When you load BEE inside your application, you pass a configuration object with multiple sections that define characteristics of the UI, UX, and the available elements. However, there are cases when you want to reload this configuration without the need to reload the plugin. In these cases, you can use a specific event to update the configuration while the editor is open.
Use cases
With this event, you can reload on-the-fly changes to:
- Update available categories for Saved rows
- Refresh a Custom header for authorization
- Change Advanced permissions for the current user
- Update settings for the editor’s Content defaults
How it works
You can load the configuration changes via a new instance event. Here’s an example:
var newConfig = {
advancedPermissions: {
// new permissions
}
}
bee.loadConfig(newConfig)