feat: improve handling of config to allow overrides

This commit is contained in:
Michael Zetterberg
2024-03-26 12:57:28 +01:00
parent c683f85bd8
commit e9349992f8
2 changed files with 19 additions and 1 deletions

View File

@@ -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,