magic-editor-x 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,7 +15,7 @@ Magic Editor X is a production-ready Strapi v5 Custom Field that brings the powe
15
15
 
16
16
  Built on proven technologies like Editor.js for the editing interface and Y.js for conflict-free real-time collaboration, this plugin provides a modern, extensible content editing experience that scales from solo developers to large editorial teams.
17
17
 
18
- ### Why Magic Editor X?
18
+ ### Why Magic Editor X? :)
19
19
 
20
20
  **For Developers:**
21
21
  - Clean JSON output instead of unstructured HTML
@@ -80,7 +80,8 @@ var bootstrap$1 = async ({ strapi: strapi2 }) => {
80
80
  const pluginConfig = strapi2.config.get("plugin::magic-editor-x") || {};
81
81
  const autoParseJSON = pluginConfig.api?.autoParseJSON !== false;
82
82
  if (autoParseJSON) {
83
- strapi2.server.use(strapi2.plugin("magic-editor-x").middleware("parse-editor-fields")());
83
+ const parseMiddleware = strapi2.plugin("magic-editor-x").middleware("parse-editor-fields");
84
+ strapi2.server.use(parseMiddleware({}, { strapi: strapi2 }));
84
85
  strapi2.log.info("[Magic Editor X] [SUCCESS] Auto-parse middleware registered (api.autoParseJSON: true)");
85
86
  } else {
86
87
  strapi2.log.info("[Magic Editor X] [INFO] Auto-parse middleware disabled (api.autoParseJSON: false)");
@@ -1994,7 +1995,7 @@ var snapshotService$1 = ({ strapi: strapi2 }) => ({
1994
1995
  }
1995
1996
  });
1996
1997
  const name = "magic-editor-x";
1997
- const version = "1.0.0";
1998
+ const version = "1.1.0";
1998
1999
  const description = "Advanced block-based editor for Strapi v5 with Editor.js, Media Library integration, and real-time collaboration support";
1999
2000
  const keywords = [
2000
2001
  "strapi",
@@ -68,7 +68,8 @@ var bootstrap$1 = async ({ strapi: strapi2 }) => {
68
68
  const pluginConfig = strapi2.config.get("plugin::magic-editor-x") || {};
69
69
  const autoParseJSON = pluginConfig.api?.autoParseJSON !== false;
70
70
  if (autoParseJSON) {
71
- strapi2.server.use(strapi2.plugin("magic-editor-x").middleware("parse-editor-fields")());
71
+ const parseMiddleware = strapi2.plugin("magic-editor-x").middleware("parse-editor-fields");
72
+ strapi2.server.use(parseMiddleware({}, { strapi: strapi2 }));
72
73
  strapi2.log.info("[Magic Editor X] [SUCCESS] Auto-parse middleware registered (api.autoParseJSON: true)");
73
74
  } else {
74
75
  strapi2.log.info("[Magic Editor X] [INFO] Auto-parse middleware disabled (api.autoParseJSON: false)");
@@ -1982,7 +1983,7 @@ var snapshotService$1 = ({ strapi: strapi2 }) => ({
1982
1983
  }
1983
1984
  });
1984
1985
  const name = "magic-editor-x";
1985
- const version = "1.0.0";
1986
+ const version = "1.1.0";
1986
1987
  const description = "Advanced block-based editor for Strapi v5 with Editor.js, Media Library integration, and real-time collaboration support";
1987
1988
  const keywords = [
1988
1989
  "strapi",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-editor-x",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Advanced block-based editor for Strapi v5 with Editor.js, Media Library integration, and real-time collaboration support",
5
5
  "keywords": [
6
6
  "strapi",