diff --git a/src/index.js b/src/index.js index 1d4a22d02..20b003f2a 100644 --- a/src/index.js +++ b/src/index.js @@ -58,6 +58,8 @@ module.exports = (() => { if (plugin) { plugin(editor, config.pluginsOpts[pluginId] || {}); + } else if (typeof pluginId === 'function') { + pluginId(editor, config.pluginsOpts[pluginId] || {}); } else { console.warn(`Plugin ${pluginId} not found`); }