feat: improve handling of config to allow overrides
This commit is contained in:
12
rte/main.tsx
12
rte/main.tsx
@@ -181,7 +181,17 @@ async function init() {
|
||||
const savedSelection = rte?.selection?.get() ?? undefined;
|
||||
|
||||
// @ts-expect-error: Added at runtime
|
||||
const config = await rte.getConfig();
|
||||
const appConfig = await rte.getConfig();
|
||||
|
||||
// This is the configuration for this instance of the plugin.
|
||||
// You edit this in the content types settings RTE plugin section.
|
||||
// @ts-expect-error: Added at runtime
|
||||
const pluginConfig = await rte.getFieldConfig();
|
||||
|
||||
const config = {
|
||||
...appConfig,
|
||||
...pluginConfig,
|
||||
};
|
||||
|
||||
openImageVault({
|
||||
config,
|
||||
|
||||
Reference in New Issue
Block a user