fix: improve handling of config and rte plugin

This commit is contained in:
Michael Zetterberg
2024-03-26 14:40:24 +01:00
parent 8cad5ea290
commit 7c6dda1781
3 changed files with 20 additions and 12 deletions

View File

@@ -14,7 +14,7 @@ import type {
} from "~/types/contentstack"
function findThisPlugin(ext: ContentstackPluginDefinition) {
return ext.type === "rte_plugin" && ext.title === "ImageVault"
return ext.type === "rte_plugin" && /imagevault/i.test(ext.title)
}
async function loadScript(url: string) {