diff --git a/lib/client/editorConfig.ts b/lib/client/editorConfig.ts index 9c4742b..0dde1cd 100644 --- a/lib/client/editorConfig.ts +++ b/lib/client/editorConfig.ts @@ -6,9 +6,7 @@ const reducer = (pv, cv) => { return { ...pv, [cv]: `plugins/${cv}/plugin.min.js` }; }; -const external_plugins = plugins.reduce((pv, cv) => { - return { ...pv, [cv]: `plugins/${cv}/plugin.min.js` }; -}, {}); +const external_plugins = plugins.reduce(reducer); const base_url = "/tinymce"; export const fancy = { branding: false, @@ -94,7 +92,7 @@ export const comment = { }, }, schema: "html5", - external_plugins, + external_plugins: ["link"].reduce(reducer), toolbar: "bold italic underline | link", contextmenu: "bold italic underline | paste | link", }; @@ -140,7 +138,7 @@ export const bare = { }, }, schema: "html5", - external_plugins, + external_plugins: ["link"].reduce(reducer), toolbar: "bold italic underline | hr link", contextmenu: "bold italic underline | paste | hr link", };