magic-editor-x 2.3.1 → 2.5.0
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/CHANGELOG.md +125 -0
- package/README.md +428 -148
- package/bin/magic-editor-x.mjs +55 -8
- package/dist/admin/AuditPage-Be78C7EC.mjs +382 -0
- package/dist/admin/AuditPage-iQzpjH8H.js +382 -0
- package/dist/admin/{ConfigurationPage-CYGDLjM7.mjs → ConfigurationPage-C9CPBfWy.mjs} +405 -10
- package/dist/admin/{ConfigurationPage-CFP3lp9p.js → ConfigurationPage-DefuBeYO.js} +415 -20
- package/dist/admin/ConfirmAction-CUhpngYU.js +71 -0
- package/dist/admin/ConfirmAction-CZjpduc3.mjs +72 -0
- package/dist/admin/Content-BttG50Mc.mjs +360 -0
- package/dist/admin/Content-V5MRBsI3.js +362 -0
- package/dist/admin/{CustomBlocksPage-B5Q33N-s.mjs → CustomBlocksPage-DB5nnCsn.mjs} +8 -5
- package/dist/admin/{CustomBlocksPage-DzPOSpfn.js → CustomBlocksPage-Dg2rM3F4.js} +26 -23
- package/dist/admin/EntryWidgets-B8YA0Zxy.mjs +199 -0
- package/dist/admin/EntryWidgets-BcXAAx3F.js +201 -0
- package/dist/admin/MentionsWidget-CJPZDk9Z.mjs +225 -0
- package/dist/admin/MentionsWidget-DUz6YVIG.js +227 -0
- package/dist/admin/{useT-Cmg1jwwG.mjs → SectionCard-8ZNHkvn9.mjs} +2 -12
- package/dist/admin/{useT-DNphiBQR.js → SectionCard-Bs-xiiH1.js} +0 -10
- package/dist/admin/{TemplatesPage-4A8JNO_Z.mjs → TemplatesPage-VsZ_Mc0R.mjs} +307 -10
- package/dist/admin/{TemplatesPage-BVkgafCK.js → TemplatesPage-dx4_yd_t.js} +321 -24
- package/dist/admin/{ConfirmAction-zLuIFj8t.js → api-4AYzwS4-.js} +28 -71
- package/dist/admin/{ConfirmAction-DuQwvRYi.mjs → api-CcTYyckq.mjs} +28 -71
- package/dist/admin/auditText-DIIYVR6k.mjs +110 -0
- package/dist/admin/auditText-DUhWu2Nx.js +109 -0
- package/dist/admin/comments-C7P41lan.js +86 -0
- package/dist/admin/comments-hfIbLQNO.mjs +87 -0
- package/dist/admin/{de-B1X46JJZ.js → de-B6rdcOqQ.js} +293 -5
- package/dist/admin/{de-1cFMs-4c.mjs → de-BWfR2jTg.mjs} +8 -1
- package/dist/admin/{de-BUS1hUw0.mjs → de-Bip0sBRT.mjs} +158 -1
- package/dist/admin/{de-Dn8athM8.js → de-BrPR4sUB.js} +8 -1
- package/dist/admin/{de-DOiGaTNX.mjs → de-CQA8hOpl.mjs} +293 -5
- package/dist/admin/{de-C3AsGauQ.js → de-CnnxKXj7.js} +158 -1
- package/dist/admin/{de-2Ie5jy7j.js → de-Dss5POqk.js} +53 -3
- package/dist/admin/{de-BMY2LBaa.mjs → de-zgHCYTLH.mjs} +53 -3
- package/dist/admin/{en-CIZ5Ggod.js → en--JjAHbpP.js} +8 -1
- package/dist/admin/{en-CU6UzV4g.mjs → en-BCKaVgBM.mjs} +293 -5
- package/dist/admin/{en-Ah-Cw0Wd.js → en-CJ17Sp_e.js} +53 -3
- package/dist/admin/{en-CDg_18Bt.js → en-CbGkcq0Q.js} +293 -5
- package/dist/admin/{en-GCzgS9Aw.mjs → en-Cd6Jk-J0.mjs} +158 -1
- package/dist/admin/{en-BkEjpC3i.js → en-D69Fe9ZO.js} +158 -1
- package/dist/admin/{en-Dc9y-6n9.mjs → en-Dr58wBAo.mjs} +8 -1
- package/dist/admin/{en-CvFiqti2.mjs → en-Uhm7OouM.mjs} +53 -3
- package/dist/admin/entry-panel-events-0msyPrAD.js +18 -0
- package/dist/admin/entry-panel-events-XRuUoLZ9.mjs +19 -0
- package/dist/admin/{es-D2Kw6E4N.mjs → es-B2Hkkbw9.mjs} +8 -1
- package/dist/admin/{es-DbKHZz5l.mjs → es-BMkmfH88.mjs} +53 -3
- package/dist/admin/{es-DHBBZKl2.mjs → es-Bz8d72Fa.mjs} +158 -1
- package/dist/admin/{es-BCpJmUEM.js → es-C8UotT8O.js} +293 -5
- package/dist/admin/{es-C4pEnDRv.js → es-CcEDZpVQ.js} +158 -1
- package/dist/admin/{es-Cr8JH85N.js → es-DJm3HFJt.js} +53 -3
- package/dist/admin/{es-C4IRHV5d.js → es-YvaTAtqY.js} +8 -1
- package/dist/admin/{es-BmfffNM2.mjs → es-pvPfNAld.mjs} +293 -5
- package/dist/admin/{fr-BOvvfEH7.mjs → fr-BvPjRiwr.mjs} +8 -1
- package/dist/admin/{fr-Dvq4xk2e.mjs → fr-CKHZ0xxU.mjs} +158 -1
- package/dist/admin/{fr-OJ4VW1kh.js → fr-CRM9VuAq.js} +53 -3
- package/dist/admin/{fr-DQJ_7aq5.mjs → fr-CrIHmKYX.mjs} +53 -3
- package/dist/admin/{fr-C2aLSwEu.js → fr-Cx29jQ_g.js} +158 -1
- package/dist/admin/{fr-DZd2XJP6.mjs → fr-D4tL6Ag2.mjs} +293 -5
- package/dist/admin/{fr-Zkb8vfjN.js → fr-Di-U-rAH.js} +8 -1
- package/dist/admin/{fr-ZcN0yM_2.js → fr-DrUYv2jh.js} +293 -5
- package/dist/admin/{index-k8_a5o1A.mjs → index-C4ksUkEm.mjs} +20059 -10130
- package/dist/admin/{index-DQVE0ymw.js → index-C5D3VqLq.js} +21272 -11344
- package/dist/admin/index-CMYCZWOh.mjs +3752 -0
- package/dist/admin/index-DRyctF9s.js +3753 -0
- package/dist/admin/index.js +2 -1
- package/dist/admin/index.mjs +3 -2
- package/dist/admin/math-D6jmskGS.js +49 -0
- package/dist/admin/math-DntdSWKX.mjs +47 -0
- package/dist/admin/{pt-CilDggGF.mjs → pt-B8x7v-Xw.mjs} +158 -1
- package/dist/admin/{pt-DX0OAIoL.js → pt-BYn2xx78.js} +158 -1
- package/dist/admin/{pt-CImqDnLB.js → pt-CojQcz-p.js} +293 -5
- package/dist/admin/{pt-C3UdeIpd.mjs → pt-CuoIihKx.mjs} +293 -5
- package/dist/admin/{pt-1IUyx6ae.js → pt-CzrN_3ui.js} +8 -1
- package/dist/admin/{pt-BSLzA17U.mjs → pt-DDlPJYtB.mjs} +53 -3
- package/dist/admin/{pt-D0I0_JYs.js → pt-DPVAycXJ.js} +53 -3
- package/dist/admin/{pt-etwsg3G4.mjs → pt-DdGagO99.mjs} +8 -1
- package/dist/admin/useT-Bpw__IXT.js +12 -0
- package/dist/admin/useT-Cb-R3kyA.mjs +13 -0
- package/dist/blocks/index.d.mts +126 -0
- package/dist/blocks/index.d.ts +126 -0
- package/dist/blocks/index.js +184 -4
- package/dist/blocks/index.mjs +184 -4
- package/dist/math/index.d.mts +27 -0
- package/dist/math/index.d.ts +27 -0
- package/dist/math/index.js +168 -0
- package/dist/math/index.mjs +138 -0
- package/dist/react/index.js +1650 -759
- package/dist/react/index.mjs +1650 -759
- package/dist/render/index.d.mts +48 -0
- package/dist/render/index.d.ts +48 -0
- package/dist/render/index.js +1755 -773
- package/dist/render/index.mjs +1755 -773
- package/dist/server/index.js +29475 -18462
- package/dist/server/index.mjs +29475 -18462
- package/dist/server/mcp-worker.js +11319 -0
- package/dist/vue/index.js +1650 -759
- package/dist/vue/index.mjs +1650 -759
- package/package.json +14 -8
- package/schema/magic-editor-x.schema.json +135 -2
- package/types/blocks.d.ts +126 -0
- package/types/index.d.ts +52 -1
- package/types/math.d.ts +27 -0
- package/types/render.d.ts +48 -0
- package/dist/admin/index-DR8sHkTk.js +0 -1940
- package/dist/admin/index-My6FjjHB.mjs +0 -1939
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,130 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# [2.5.0](https://github.com/Schero94/Magic-Editor-X/compare/v2.4.0...v2.5.0) (2026-11-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* entry panel with presence, unsaved-work protection, reuse, palette colours, private media and MCP tools ([#9](https://github.com/Schero94/Magic-Editor-X/issues/9)) ([23d3127](https://github.com/Schero94/Magic-Editor-X/commit/23d31270a8d13aae90c91734af844be1171281d3))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Magic Editor X 2.5 shows who is editing an entry, keeps unsaved work, lets editors reuse content from other entries, starts long entries faster, adds palette colours, superscript, subscript and inline annotations, supports private upload providers and dropped files, and adds optional tools for Strapi's MCP server. Everything new is off by default or appears only when it is relevant; the field toolbar is unchanged.
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- **Entry panel:** a Magic Editor X side panel in the Content Manager shows who else is editing the entry (names only, across processes, also without live collaboration), open comment threads and quality issues or broken links per field, each with a button that opens that field's panel. Optional soft lock `presence.softLock` (off): a dialog asks once per tab before you edit an entry someone else is editing; nobody is locked out. Homepage widgets **My open threads** and **Broken links**. Routes `POST /presence`, `GET /entry-summary`, `GET /widgets/open-threads`, `GET /widgets/broken-links`; config `presence.enabled` (true), `presence.softLock` (false), `presence.perMinute` (30).
|
|
16
|
+
- **Unsaved work is kept:** unsaved field content stays in your browser (IndexedDB) and is offered back after a reload, crash, closed tab or ended session with one notice: Restore (one Undo reverts it) or Discard. Never restored automatically over newer saved content. Removed on save, discard, expiry and logout. Config `drafts.enabled` (true), `drafts.ttlHours` (72).
|
|
17
|
+
- **Insert from another entry:** More tools > Write > Insert from another entry copies chosen blocks from any entry, field or language you can read, with a preview and one undo step. Blocks the field does not allow are listed with the reason; synced blocks stay synced; inserted blocks get new ids. Routes `GET /reuse/types`, `GET /reuse/source`; config `reuse.enabled` (true), `reuse.perMinute` (60).
|
|
18
|
+
- **Block clipboard:** blocks copied between Magic Editor X fields, entries and tabs keep all their data and alignment; new **Copy block** in the block menu.
|
|
19
|
+
- **Faster long entries:** Editor.js and the live room of a field start when the field comes near the screen or gets focus (`lazyInit.enabled`, `lazyInit.marginPx` 800). With 20 fields and a dynamic zone, 4 editors and live connections start instead of 20. The benchmark covers 20 fields and up to 250 repeatable and dynamic-zone items.
|
|
20
|
+
- **Palette colours, superscript, subscript, inline annotations:** text colour and highlight from named tokens in the new `palette` config (stored as `data-mex-color`/`data-mex-highlight`, rendered as classes, never inline styles), with a contrast check in Settings and the quality rule `color-contrast`; superscript and subscript; inline annotations with the built-in abbreviation and `registerInlineAnnotation` in `magic-editor-x/blocks` (server-side `resolve`, renderer options `annotations` and `resolveAnnotation`). Field options `inlineColors`, `inlineScript`, `inlineAnnotations`, all off by default.
|
|
21
|
+
- **Private upload providers:** Media Library files in Magic Editor X values are stored with their file id and unsigned URL and signed in batches on every Content API, GraphQL and `?mex=` read and in the editor. New route `POST /media/signed-urls`; `GET /config` adds `uploads.privateFiles`.
|
|
22
|
+
- **Drop files onto a field** (Strapi 5.61+): they are uploaded through Strapi's Media Library drop zone and inserted as image, video or audio blocks; older hosts keep the previous behaviour.
|
|
23
|
+
- **Tools for AI clients (MCP):** with `mcp.enabled` (false) and Strapi's `server.mcp.enabled`, tools `mex_from_markdown`, `mex_from_html`, `mex_validate`, `mex_render`, one JSON Schema resource per preset and the prompt `mex_content_guide`. Pure transformations in a worker thread with a time limit; new action `plugin::magic-editor-x.mcp.use` (no role gets it automatically).
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
- Tab and other keys work in every Magic Editor X dialog and in other form fields while an editor has a current block (Editor.js handled keys typed anywhere on the page).
|
|
28
|
+
- Text typed into an empty field in a live room now reaches the other editors (0 of 1 edits arrived in 2.4.0), and other people's edits no longer move your focus.
|
|
29
|
+
- Discarding a draft keeps version history and comments of sections whose published version predates 2.4.
|
|
30
|
+
- A section emptied and saved keeps its history and comments (its `fieldKey` is remembered while the value is `null`).
|
|
31
|
+
- Saving a synced block without changes no longer creates a version.
|
|
32
|
+
- Mention e-mails use the recipient's admin language (en, de, fr, es, pt).
|
|
33
|
+
- The inline toolbar wraps inside the field on narrow screens instead of running off the left edge.
|
|
34
|
+
- Focus returns into gallery, video and audio blocks after the Media Library picker closes.
|
|
35
|
+
- No Radix accessibility warning in the console for the plugin's dialogs on Strapi 5.62 (Design System 2.3.1).
|
|
36
|
+
- Installing on Node 22 no longer warns with EBADENGINE (see the migration notes); CI installs the packed package on Node 22 and fails on any EBADENGINE.
|
|
37
|
+
|
|
38
|
+
### Deferred
|
|
39
|
+
|
|
40
|
+
- Component blocks (Content-Type Builder components as blocks) move to 2.6. They worked in single-editor tests, but a stress test of two editors in one live room (CPU throttled 4x) lost a collaborator's edit: the component form sent all its values on every keystroke, so a value that had arrived from the room but was not drawn yet was overwritten (3 of 8 rounds), and the same happened inside one attribute (1 of 4 rounds). The cause is found and a fix with regression tests is on the branch `feat/2.5-components`; it ships when the stress and cluster runs show no lost edit.
|
|
41
|
+
- Live Preview inline editing for Magic Editor X fields: in Strapi 5.61 the side editor and its messages are internal, live preview is experimental and needs a Growth or Enterprise plan, and content source maps skip JSON custom fields.
|
|
42
|
+
- Columns/layout block: the 2.5 spike measured blockers on Editor.js 2.31 (moving a block between columns while someone edits it loses the edit without a new collaboration schema; nested editors handle keys twice; comments, suggestions, quality, find/replace and AI address top-level blocks only). See `docs/engine-decision.md`.
|
|
43
|
+
- Session-expiry warning: Strapi does not expose to the browser when an admin session ends; local drafts cover lost sessions instead.
|
|
44
|
+
|
|
45
|
+
### Migration notes
|
|
46
|
+
|
|
47
|
+
- `engines.node` is now `>=22.12.0 <=26.x.x`. This declares the floor that the dependency sanitize-html 2.18 already required since 2.4.0; installs on Node 22.12 or later no longer warn with EBADENGINE.
|
|
48
|
+
- `@editorjs/embed` is pinned to 2.7.7, because 2.8.0 requires Node 24. YouTube Shorts and Figma embeds, which 2.8.0 added, are defined by the plugin, so nothing changes for editors; the Figma pattern now requires a Figma document URL.
|
|
49
|
+
- No breaking changes and nothing to do for public upload providers.
|
|
50
|
+
- With a private upload provider, migration `2.5.0-media-file-ids` adds `fileId` to media in Magic Editor X values once at startup (idempotent, under the migration lease). Dry run: `npx magic-editor-x media-file-ids`; apply again: `--apply`.
|
|
51
|
+
- Fields start lazily: scripts and tests that wait for `[data-mex-ready="true"]` must scroll the field into view first, or set `lazyInit.enabled: false`.
|
|
52
|
+
- New config keys `presence`, `drafts`, `lazyInit`, `reuse`, `palette` and `mcp` are optional.
|
|
53
|
+
|
|
54
|
+
# [2.4.0](https://github.com/Schero94/Magic-Editor-X/compare/v2.3.1...v2.4.0) (2026-11-12)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Features
|
|
58
|
+
|
|
59
|
+
* stable component field ids, tables v2, math, footnotes, range comments, suggest mode, audit trail and a simpler toolbar ([#8](https://github.com/Schero94/Magic-Editor-X/issues/8)) ([080d5af](https://github.com/Schero94/Magic-Editor-X/commit/080d5af4a4ca775560c42656956eb863a9bcfbcc))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
Magic Editor X 2.4 adds better tables, math and footnotes, comments on selected text with @mentions, block suggestions, an audit trail and block-scoped AI, gives fields in repeatable components and dynamic zones their history, comments and live editing back, and fixes a collaboration bug that could delete blocks. The field toolbar is now short: undo, redo, **More tools** and full screen. There are no breaking changes; stored content keeps working and Editor.js stays at 2.31.7.
|
|
63
|
+
|
|
64
|
+
### Features
|
|
65
|
+
|
|
66
|
+
- **Fields in repeatable components and dynamic zones** have version history, comments and live editing again. Their values carry a stable `fieldKey`, so history and comments follow their entry when entries are moved, added or removed. A new section gets them after its first save; until then the toolbar shows a hint. New optional `fieldKey` on `GET|POST /history`, `GET|POST /comments`, `POST /collaboration/session`, `GET /quality/link-report` and the new mention and suggestion routes; `meta.fieldKey`, `meta.positionalVersions`, `meta.positionalThreads`.
|
|
67
|
+
- **Tables** have a header row and a header column, per-column alignment, merged cells and a caption. Select cells with Shift+click and merge them, or use merge right/down from one cell. Tab moves between cells and Alt+F10 opens the table toolbar. Pasting from a spreadsheet fills the cells; pasting from Word or a web page keeps merged cells, header cells and alignment. New optional data keys `headerColumn`, `align`, `merges`, `caption`; renderers output `<caption>`, `<th scope>`, `colspan`/`rowspan` and `mex-align-*` classes, Markdown a GFM alignment row. Quality rule `table-empty-header`.
|
|
68
|
+
- **Math:** formulas in TeX as a block (`math`) or inside text (Ctrl/Cmd+Shift+E), with a live preview. The API and the renderers output MathML (Temml 0.14, MathML allow-list); new render option `math` and export `magic-editor-x/math` (`renderMath`, `checkMath`, `MATH_SETTINGS`). Markdown `$…$` / `$$…$$`. Quality rule `math-invalid`.
|
|
69
|
+
- **Footnotes** with Ctrl/Cmd+Alt+F, numbered in reading order and listed under the field. The note lives in its marker, so copy, move, undo and delete keep them together. Render option `footnotes`, GFM footnotes in Markdown. Quality rule `footnote-empty`.
|
|
70
|
+
- **Comments on selected text:** select text and choose Comment (Ctrl/Cmd+Alt+M); Magic Editor X highlights the passage and keeps the thread on the text while people edit. Ctrl/Cmd+Alt+N moves to the next comment. Read-only reviewers get a floating Comment button.
|
|
71
|
+
- **@mentions and notifications:** type `@` in a comment to mention a colleague who can read the field. They see it in the comments panel and in the **Mentions and replies** widget on the admin home page; replies notify the other people in the thread. Optional e-mails through the Strapi email plugin (`comments.notifications.email`, default `false`; `emailPerHour` 10), never with the comment text. Routes `GET /comments/mentionable`, `GET /notifications`, `POST /notifications/read-all`, `POST /notifications/:id/read|unread`; config `comments.mentionsPerMinute` (60).
|
|
72
|
+
- **Block suggestions:** give a role **Suggest block changes** (`suggestions.create`) and its members can choose Suggest changes even in fields they cannot edit. Their edits stay in a separate copy until they send them; each changed, new or removed block becomes one suggestion that editors with **Review block suggestions** (`suggestions.review`) accept or reject in the Suggestions panel. Accepted changes go into the field like any edit; save the entry to keep them. Routes `GET|POST /suggestions`, `POST /suggestions/:id/accept|reject`, `DELETE /suggestions/:id`; config `suggestions.enabled` (true), `suggestions.perMinute` (20).
|
|
73
|
+
- **AI for chosen blocks:** select blocks, or open a block's menu, and choose AI to rewrite, shorten, translate or change the tone of just those blocks (Ctrl/Cmd+Shift+G). Only their text is sent; a word diff shows the change before it is applied and one Undo reverts it. Route `POST /ai/blocks/:action`. The assistant for selected text now also keeps formatting the selection crosses, limits its answer to the field's inline tools and shows a word diff.
|
|
74
|
+
- **Audit trail:** Settings > Magic Editor X > Audit trail and an Activity tab in the version history show who changed which field, version, comment, suggestion, template, synced block or setting, and when, with counts and block ids but never content. Permission `audit.read`; routes `GET /audit`, `GET /audit/actors`; config `audit.enabled` (true), `audit.retentionDays` (180). Events are also sent to Strapi's Enterprise audit logs when that feature exists.
|
|
75
|
+
- **Versions of synced blocks:** every save of a synced source keeps a version; preview, compare, rename and restore them in Settings > Templates. Routes `GET /templates/:id/versions[/:versionId]`, `PUT /templates/:id/versions/:versionId`, `POST /templates/:id/versions/:versionId/restore`.
|
|
76
|
+
- **Scheduled link check:** **Run now** in Settings > Configuration and a time zone for the rule (`qualityChecks.externalLinks.schedule.tz`); `GET /quality/link-schedule` adds `tz` and `nextRunAt`.
|
|
77
|
+
- **`@` in text** opens entry suggestions at the caret and inserts a mention; e-mail addresses never trigger it.
|
|
78
|
+
- **Code file names:** the highlighted code block has an optional file name (`codeFlask.filename`), rendered as a caption and as ` ```lang title="…" ` in Markdown.
|
|
79
|
+
- **Pasted video and audio** from web pages become video and audio blocks: the file, poster and caption tracks are copied into the Media Library through the new SSRF-safe `POST /media/byUrl`. Config `uploads.maxMediaBytes` (50 MiB) and `uploads.allowPrivateOrigins` (`[]`, also used by images by URL).
|
|
80
|
+
- **Alt text from private image storage:** `ai.altText.allowPrivateOrigins` (`[]`) lists exact origins of upload storage inside your network that alt text suggestions may read.
|
|
81
|
+
- **Strapi AI translations** no longer corrupt Magic Editor X fields: only text is sent to the provider, and other locales are rebuilt from the source structure. A value that cannot be matched is refused with `AI_TRANSLATION_UNSAFE`.
|
|
82
|
+
- **Releases** show entries blocked by the publishing guard as "Not ready to publish".
|
|
83
|
+
- **Field toolbar:** undo, redo, a **More tools** menu (Review, Write, View) and full screen. Every other tool moved into the menu and appears only where it can work; keyboard shortcuts are unchanged.
|
|
84
|
+
|
|
85
|
+
### Fixes
|
|
86
|
+
|
|
87
|
+
- Collaboration: an editor that joined a room diffed its first edits against room content it had not rendered yet, which deleted the blocks it had not shown, including other people's acknowledged edits inside them; edits typed before the first sync were dropped. The base of every edit is now what the editor shows until it has rendered the room, and early edits are merged onto the room (present since 2.0).
|
|
88
|
+
- Live sessions without changes created a version when they ended, because Editor.js writes default settings (alignment left, no indent) into every block. Default settings now count as no setting in version comparisons.
|
|
89
|
+
- Collaboration: a data key removed by a collaborator stayed on other screens (Editor.js `blocks.update` merges data); after a remote change the caret returned only to the first input of a block.
|
|
90
|
+
- `@editorjs/table` dropped line breaks in cells.
|
|
91
|
+
- Copying blocks between editor fields went through HTML conversion and lost data; the Editor.js block clipboard is now used when the blocks fit the target field.
|
|
92
|
+
- Ctrl/Cmd+Enter in the footnote dialog and in comment boxes triggered the Content Manager save (403 for reviewers without update rights).
|
|
93
|
+
- The embed renderer computed the caption before deciding to render nothing.
|
|
94
|
+
- The block selection bar was not reachable with the keyboard.
|
|
95
|
+
- AI for selected text nested bold tags when the selection crossed formatting.
|
|
96
|
+
- The translate validator accepted the id `"01"` for `"1"`.
|
|
97
|
+
- Block menus opened under the next editor field.
|
|
98
|
+
- Collaboration: text typed in the first moments after a field with existing room content opened could lose its last characters (same cause as the first fix above).
|
|
99
|
+
- Code blocks: tokens without their own colour took the colours of the global code theme loaded by Strapi's Blocks field, some below the contrast minimum (for example Python builtins at 2.93:1); every token now has its own colour (present since 2.3).
|
|
100
|
+
- After "Leave focus mode" keyboard focus fell to the page; it now returns to More tools.
|
|
101
|
+
- Dialogs with icon buttons needed several Escape presses while a tooltip was open.
|
|
102
|
+
|
|
103
|
+
### Security
|
|
104
|
+
|
|
105
|
+
- See [docs/security-audit-2.4.md](./docs/security-audit-2.4.md): field identities (MEX-24-01), rows saved by position (MEX-24-02), tables (MEX-24-03), math (MEX-24-04), footnotes (MEX-24-05), video and audio by URL (MEX-24-06), the `@` trigger and code file names (MEX-24-07), AI for chosen blocks (MEX-24-08), alt text from private storage (MEX-24-09), audit trail (MEX-24-10), synced source versions (MEX-24-11), link check Run now and time zone (MEX-24-12), comment anchors (MEX-24-13), mentions, notifications and e-mail (MEX-24-14), suggestions (MEX-24-15), Strapi AI translations (MEX-24-16), Releases readiness and the published-status bypass (MEX-24-17) and the collaboration data-loss fix (MEX-24-18).
|
|
106
|
+
- `documents().create/update({ status: 'published' })`, which the Content API uses for `?status=published`, published without running the publishing guard. These writes are now refused with 400 `QUALITY_GATE` when a guarded field has errors.
|
|
107
|
+
- Dependencies: `temml` 0.14.0 added (MIT), `@editorjs/table` removed; `npm audit --omit=dev` reports 0 vulnerabilities.
|
|
108
|
+
|
|
109
|
+
### Notes
|
|
110
|
+
|
|
111
|
+
- **`fieldKey`:** values of editor fields inside repeatable components and dynamic zones get a top-level `fieldKey` (16 to 32 URL-safe characters) when they are saved. It is additive: renderers ignore it, the JSON Schema and `MagicEditorXData.fieldKey?` describe it, and Content API and GraphQL output include it. Top-level fields and fields in single components never get one.
|
|
112
|
+
- **Versions and comments saved by position before 2.4** are mapped to their entry when their block ids prove it, the first time that field's history or comments are opened. Rows that cannot be mapped stay readable but read-only ("Older versions saved by position", 409 `POSITIONAL_READ_ONLY`). Nothing is deleted.
|
|
113
|
+
- **`@editorjs/table` is replaced** by the plugin's own table tool. The stored `table` data is compatible: tables saved before 2.4 keep their exact shape and renderer output, and renderers that do not know the new keys show a full grid.
|
|
114
|
+
- **Content API `?status=published`** creates and updates now run the publishing guard. This is a behaviour change that matches what `publishGuard` always promised.
|
|
115
|
+
- **`math`:** the name is a built-in block now. Settings custom blocks named `math` from before 2.4 keep their data and tool; new ones cannot take the name. Blocks registered in code with the SDK may still be named `math`, so hosts that registered one with 2.3 keep starting.
|
|
116
|
+
- **Editor.js stays at 2.31.7:** 2.32.0 is still a release candidate on npm (`next` tag `2.32.0-rc.3`, checked 2026-11-12). [docs/engine-decision.md](./docs/engine-decision.md) explains why the plugin stays on Editor.js for 2.x.
|
|
117
|
+
- **Review workflows** are not supported: Strapi registers them only with an Enterprise or Growth plan, so a stage hook cannot be tested end to end and none ships.
|
|
118
|
+
- Known issues: an Editor.js toolbar handler swallows the first Tab presses in dialogs opened from an editor (also the keyboard shortcuts dialog); an empty field's first live catch-up can move focus into that field; discarding a draft whose published version predates 2.4 drops keys added to the draft.
|
|
119
|
+
|
|
120
|
+
### Migration
|
|
121
|
+
|
|
122
|
+
- No action needed. Rebuild the admin (`npm run build`) after updating.
|
|
123
|
+
- Grant the new permissions to roles that should use them: `suggestions.create`, `suggestions.review`, `audit.read`. No role gets them automatically.
|
|
124
|
+
- API clients that write values inside repeatable components or dynamic zones should send the stored `fieldKey` back (or the component `id`); otherwise each write gives the value a new key and its history and comments start fresh.
|
|
125
|
+
- Clients that create or update entries with `?status=published` on types with `publishGuard` must handle 400 `QUALITY_GATE`.
|
|
126
|
+
- Optional: `comments.notifications.email: true` (needs a working email provider), `qualityChecks.externalLinks.schedule.tz`, `uploads.allowPrivateOrigins`, `ai.altText.allowPrivateOrigins`. The audit trail is on by default; set `audit.enabled: false` to turn it off.
|
|
127
|
+
|
|
3
128
|
## [2.3.1](https://github.com/Schero94/Magic-Editor-X/compare/v2.3.0...v2.3.1) (2026-11-12)
|
|
4
129
|
|
|
5
130
|
|