We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a934dfc commit 10cb07dCopy full SHA for 10cb07d
server/src/bootstrap.js
@@ -86,7 +86,8 @@ module.exports = async ({ strapi }) => {
86
const autoParseJSON = pluginConfig.api?.autoParseJSON !== false; // Default: true
87
88
if (autoParseJSON) {
89
- strapi.server.use(strapi.plugin('magic-editor-x').middleware('parse-editor-fields')());
+ const parseMiddleware = strapi.plugin('magic-editor-x').middleware('parse-editor-fields');
90
+ strapi.server.use(parseMiddleware({}, { strapi }));
91
strapi.log.info('[Magic Editor X] [SUCCESS] Auto-parse middleware registered (api.autoParseJSON: true)');
92
} else {
93
strapi.log.info('[Magic Editor X] [INFO] Auto-parse middleware disabled (api.autoParseJSON: false)');
0 commit comments