magic-editor-x
v2.15.0
Published
Free, open-source block editor for Strapi 5: Editor.js custom field with Media Library uploads, custom blocks, version history, live collaboration across several servers and an optional AI assistant with your own provider.
Maintainers
Readme
Magic Editor X
Block editor for Strapi 5: an Editor.js custom field with Media Library uploads, custom blocks, templates, tables with merged cells, math and footnotes, comments on blocks and on selected text with @mentions, block suggestions, version history, an audit trail, live collaboration across several servers, rendered Content API and GraphQL output, React and Vue components, and optional AI and grammar assistants that use your own provider. Free and open source under the MIT license.
Live docs: https://schero94.github.io/Magic-Editor-X/
The animation above plays the 35-second demo at double speed (the AI answer in it comes from a local mock provider). If Magic Editor X is useful to you, a star on GitHub helps other Strapi developers find it.
Start as simple as Strapi Blocks, grow when you need to. New fields start with the Simple preset: the Strapi Blocks set plus tables and a calm toolbar. Switch a field to Standard or Full when you want comments, suggestions, AI, live editing or advanced blocks. Content moves both ways: ?mex=blocks serves Strapi Blocks JSON for @strapi/blocks-react-renderer, and Settings > Magic Editor X > Migrate content brings existing Blocks, Markdown or HTML fields in.
Contents
- Getting started in 3 steps
- Features
- Screenshots
- Core concepts
- Screens
- How Magic Editor X compares
- Performance and touch
- Compatibility
- Install
- Configuration
- Live collaboration
- Running several instances
- AI assistant
- Grammar check (LanguageTool)
- Field presets
- Writing tools
- Templates, patterns and synced blocks
- Comments
- Suggestions
- Paste, import and migration
- Import and export files (2.11)
- Version history
- Edit in Media Library (crop and focus)
- Quality checks
- Audit trail
- Working together and reusing content (2.5)
- Component blocks, columns and Live Preview (2.6)
- Data format
- TypeScript types per field
- Rendering content
- Content API and GraphQL output
- Strapi Blocks interoperability
- Custom blocks in code (SDK)
- Core Blocks bridge
- Strapi AI translations and Releases
- Admin API and permissions
- Security and privacy
- Troubleshooting
- Upgrading from 2.6
- Upgrading from 2.5
- Upgrading from 2.4
- Upgrading from 2.3
- Upgrading from 2.2
- Migrating from 1.x
- Development and tests
- Maintenance status
- Languages
- Showcase your company
- License
Getting started in 3 steps
For editors who open an entry with a Magic Editor X field for the first time:
- Write. Click into the field and type. Press + at the start of an empty line, or type /, to add a heading, list, image, table or any other block. Select text to make it bold, add a link or start a comment.
- Find the extras. Everything beyond writing is in one place: More tools above the field (Review: comments, history, quality, suggestions; Write: AI, templates, insert from another entry; View: preview, focus, shortcuts). A block's own menu (⋮⋮ next to it) moves, copies or changes that block.
- Save. Use Save in the Content Manager as usual. The Magic Editor X panel next to the entry shows who else is editing it, open comments and quality problems. If your browser crashes before you save, the field offers your unsaved changes back the next time you open the entry.
Features
Every feature is available in every installation. There is nothing to activate, no tiers and no usage limits. The plugin makes outgoing requests only for link previews, images and media by URL, the external link check and the AI provider and LanguageTool server the owner configured, and only when someone uses one of these features (see Security and privacy). Mention e-mails, when the owner turns them on, go through your own Strapi email plugin.
- Custom field
plugin::magic-editor-x.richtext(stored as JSON) for collection types, single types, components and dynamic zones, including localised fields and Draft & Publish. - Block tools (block name in brackets, the same names 1.x used):
- text: paragraph (
paragraph), heading H1 to H6 (header), list with nesting, ordered and unordered (list), checklist (checklist), quote (quote), warning (warning), alert in eight colours (alert), collapsible toggle (toggle), delimiter (delimiter), table with header row and column, alignment, merged cells and a caption (table), formula in TeX (math, 2.4); - structure: table of contents built from the headings, with stable anchors (
toc), synced block that shows shared content edited in one place (synced, see Templates, patterns and synced blocks); - code: plain code (
code), code with syntax highlighting and an optional file name (codeFlask; Prism with plain text, JavaScript, TypeScript, JSX, TSX, JSON, HTML/XML, CSS, SCSS, Shell, Python, PHP, Ruby, Java, Kotlin, Swift, C#, C, C++, Go, Rust, SQL, GraphQL, YAML, Markdown, Dockerfile and diff); - media: image upload by file or URL into the Media Library (
image, with alternative text and a focal point), picking images from the Media Library (mediaLib, insertsimageblocks), image by URL without upload (simpleImage), gallery of Media Library images as grid or carousel (gallery), video and audio from the Media Library with captions and WebVTT tracks (video,audio), file attachments (attaches), embeds such as YouTube, Vimeo, CodePen, GitHub, Figma and others (embed); - other: link preview card (
linkTool), person card (personality), call-to-action button (button), raw HTML (raw).
- text: paragraph (
- Inline tools: bold, italic, link with target and rel (
hyperlink, with a built-in picker that links an entry of your content types, see Internal links), mention of an entry (mention, Ctrl/Cmd+Shift+2, or type@), inline formula (inlineMath, Ctrl/Cmd+Shift+E), footnote (footnote, Ctrl/Cmd+Alt+F), marker, underline, strikethrough, inline code, tooltip, and the AI assistant when it is enabled. - Block tunes: alignment (
alignmentTune), text variant call-out / citation / details (textVariant), indent (indentTune). - Field presets: per field in the Content-Type Builder: allowed blocks and heading levels, character and block limits, required alternative text, allowed links, AI and live collaboration on or off, publishing guard. Enforced on every save and over the live channel, not only in the editor. See Field presets.
- Writing: Markdown shortcuts (
#,-,1.,[],>,```,---,**bold**,_italic_,~~strike~~,`code`), find and replace, keyboard shortcut help, focus mode, actions for several selected blocks, counts with reading time, a rendered preview of the field (Ctrl/Cmd+Alt+P), undo and redo, drag and drop, full screen. The field toolbar shows undo, redo, a More tools menu and full screen; everything else is in the menu. See Writing tools. - Templates, patterns and synced blocks: reusable starting content and block sequences per field or preset, inserted from the editor toolbar, and synced blocks that every field shows from one source. See Templates, patterns and synced blocks.
- Comments: threads on single blocks or on selected text, with replies, resolve and reopen, @mentions of colleagues, a "Mentions and replies" widget on the admin home page and optional e-mails, for editors and read-only reviewers, with their own permissions. See Comments.
- Suggestions: reviewers propose block changes in a separate copy of the field; editors accept or reject each one. See Suggestions.
- Paste and import: Word, Google Docs, LibreOffice, web pages and Markdown become real blocks (tables keep merged cells, header cells and alignment; videos and audio from the web are copied into the Media Library); a CLI migrates Strapi Blocks, Markdown and HTML fields. See Paste, import and migration.
- Import and export files (2.11): More tools > Import file turns a Word document (.docx) or a Markdown file into blocks, with a preview, then replaces the content or inserts it at the cursor. Since 2.13 Word pictures come along: they are previewed in the browser and uploaded to the Media Library only when you insert. More tools > Export file saves the field as Word (.docx), PDF (through the browser's print dialog), Markdown or HTML. Both run in the browser. See Import and export files.
- Media: alternative text and "decorative image" on image blocks and gallery images, a focal point that frontends keep visible when they crop; images keep their Media Library id and responsive formats. On Strapi 5.54+ an image block opens its file in the Media Library to crop it and set its focus, and takes the cropped file back when you return (2.12, see Edit in Media Library).
- Quality checks: accessibility lint (alternative texts, heading order, link texts, table headers, contrast of custom colours, videos without captions, empty tables of contents), readability and SEO-structure hints (sentence and paragraph length, a reading score for English, German and Spanish, passive voice, headings, internal links, length and an optional focus keyphrase), one-click Fix for safe findings, a link check and an optional scheduled check of every external link, with an optional publishing guard. See Quality checks.
- Renderers, schema and types:
magic-editor-x/render(HTML, plain text, Markdown; framework-free and XSS-safe), React and Vue components (magic-editor-x/react,magic-editor-x/vue), guides for React, Vue/Nuxt and Astro,magic-editor-x/schema(JSON Schema) andmagic-editor-x/types(TypeScript), plusnpx magic-editor-x typesfor types of the blocks each of your fields allows. See Rendering content and TypeScript types per field. - Content API and GraphQL output:
?mex=html|text|markdown|jsonon Content API requests and<field>Rendered/<field>Resolvedin GraphQL, with internal links, mentions, embedded entries, media and synced blocks resolved with the caller's permissions. See Content API and GraphQL output. - Custom blocks: define your own blocks in Settings: simple blocks with fields (text, textarea, URL, number, select, checkbox, image, colour) and an optional HTML template, or embedded-entry blocks that link an entry of another content type. Import and export as JSON. Blocks that need code (own editor UI, strict data rules, own output) are defined once with the block SDK; see Custom blocks in code (SDK).
- Version history: named versions, a word-level comparison with the current content (tune changes shown as "Alignment: left → center"), restore of the whole field or a single block; automatic versions during live sessions. Changes since last publish (2.12) marks added, changed and removed blocks in the editor against the published version, with a word-level diff per block (see Changes since last publish). Fields inside repeatable components and dynamic zones have their own history (2.4). Synced block sources keep versions too.
- Audit trail: who changed which field, version, comment, template or setting, and when, with counts and block ids but never the content. See Audit trail.
- Live collaboration: several admins edit the same field at the same time with character-level merging, presence avatars and read-only viewers. Works with several Node processes behind a load balancer without sticky sessions.
- AI assistant: improve, fix grammar, shorten, expand, summarize, simplify, translate, change tone and continue writing, using Anthropic, OpenAI or any OpenAI-compatible server (for example a local model) with your own key, on selected text or on selected blocks. Optional, each behind its own owner switch: alternative text suggestions for images and translate or summarize a whole field. See AI assistant.
- Grammar check: spelling and grammar of a whole field with a LanguageTool server (self-hosted or hosted), off until the owner turns it on. See Grammar check (LanguageTool).
- Entry panel (2.5): a Magic Editor X panel next to every entry shows who else is editing it, open comment threads and quality problems per field; optional soft lock that asks once before you edit an entry someone else is editing. Homepage widgets "My open threads" and "Broken links".
- Unsaved work is kept (2.5): unsaved field content stays in your browser and is offered back after a reload, crash, closed tab or ended session.
- Reuse (2.5): insert blocks from another entry, field or language with a preview, and copy blocks between fields with everything they contain.
- Many fields (2.5): fields start only when they come near the screen, so long entries open fast.
- Colours from your palette (2.5): text colour and highlight from named tokens you define (no free colours, no inline styles), superscript and subscript, and inline annotations such as abbreviations. All off until a field turns them on.
- Private upload providers (2.5): files of private storage (for example a private S3 bucket) are signed on every read and never stored signed. Drop files onto a field to upload and insert them.
- Tools for AI clients (2.5): optional tools, preset schemas and a content guide for Strapi's MCP server.
- Component blocks (2.6): Content-Type Builder components as blocks inside a field, with a form checked while typing and on save. Off until a field lists components. See Component blocks, columns and Live Preview (2.6).
- Columns (2.6): 2 or 3 columns of paragraphs, headings and lists that stack on narrow screens; live editing, undo, comments, AI and every renderer included.
- Live Preview (2.6): a click on a block in Strapi's preview opens the entry with the caret in that block; renderers can mark blocks for the preview.
- Strapi-native admin: built with the Strapi Design System, light and dark mode, keyboard accessible, admin in English, German, French, Spanish and Portuguese.
- Safe content: every value is normalised and sanitised on the server when it is saved, from the Content Manager, the Content API or code.
- Strapi AI translations and Releases: Strapi's AI translation sends only the text of Magic Editor X fields and rebuilds other locales from the source structure; Releases show entries the publishing guard would refuse as not ready. See Strapi AI translations and Releases.
Screenshots
| | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
|
|
|
|
|
|
|
|
|
|
All screenshots use synthetic data (captured on Strapi 5.61.1 and 5.62.0; acceptance host: Strapi 5.63.0). Every screen, from tables, math and footnotes to suggestions, templates and the AI assistant, is in the full gallery on the docs site.
Core concepts
| Term | Meaning |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Field | One Magic Editor X attribute of a content type or component. Its value is an Editor.js document. |
| Block | One entry of the document's blocks array, for example a paragraph or an image. Each block has an id, a type (the block name) and data. |
| Custom block | A block type defined in Settings > Magic Editor X > Custom blocks, or in code with the block SDK. Its name becomes the block type. |
| Template | Starting content for a field. Inserting it replaces the field content. |
| Pattern | A group of blocks that editors insert anywhere in a field. |
| Synced block | Shared content edited once in Settings > Magic Editor X > Templates. A field stores only a reference ({ ref }) and shows the current source content. |
| Thread | A comment and its replies on one block, or on a passage of text in one block, of one field, document and locale. Threads are not part of the field value. |
| Suggestion | One proposed change of one block (changed, new or removed), waiting for an editor to accept or reject it. Suggestions are not part of the field value. |
| Field key | A random fieldKey that a value inside a repeatable component or dynamic zone carries, so history, comments and live rooms follow that entry (2.4). |
| Version | A stored copy (snapshot) of one field of one document in one locale, listed in the version history. |
| Room | The live editing session of one field of one document in one locale. A room exists while people edit and for collaboration.roomTtlMinutes afterwards. |
| Viewer | Someone in a room who can read the document but not update it. Viewers see changes live but cannot type. |
Screens
| Screen | Where | Who can open it |
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Editor field | Content Manager, edit view | Everyone who can read the field. Uploads, version history and the AI assistant need the permissions in Admin API and permissions. |
| Version history | More tools > Version history, for a saved document | access and Content Manager read on the document; saving, naming and restoring need update. The Activity tab needs audit.read. |
| Find and replace | More tools > Find and replace, or Ctrl/Cmd+Shift+F in the editor | Everyone who can read the field; replacing needs update. |
| Quality checks | More tools > Quality checks (the number counts problems) | Everyone who can read the field; the link check needs access. |
| Keyboard shortcuts, focus mode | More tools > Keyboard shortcuts or Focus mode, or Ctrl/Cmd+Alt+/ | Everyone who can read the field. |
| Field options | Content-Type Builder, Magic Editor X field, Basic and Advanced settings | Content-Type Builder access (development mode). |
| AI assistant | Inline toolbar (select text), or a block's menu, the block selection bar or Ctrl/Cmd+Shift+G for whole blocks | access and ai.use, when an administrator turned the assistant on. |
| AI for the whole field | More tools > AI for the whole field | access and ai.use, when the owner allowed whole-field AI actions and the field does not turn AI off. |
| Comments panel | More tools > Comments (shows the open-thread count), a block's comment marker, or Comment on selected text (Ctrl/Cmd+Alt+M) | access, comments.read and Content Manager read on the document; writing and mentioning need comments.write, deleting others' comments comments.moderate. |
| Insert template | More tools > Insert template | access and Content Manager read on the type; "Save content as template" and "Save as pattern" need templates.manage. |
| Preview | More tools > Preview, or Ctrl/Cmd+Alt+P | Everyone who can read the field, read-only users included. |
| Grammar check | More tools > Check grammar | access and grammar.use, when the owner turned LanguageTool on. |
| Suggestions panel | More tools > Suggestions, a block's suggestion marker, or "Review suggestions" under the field | access, suggestions.create or suggestions.review and Content Manager read; accepting and rejecting need suggestions.review and update. |
| Suggest mode | More tools > Suggest changes, or "Suggest changes" under a field you cannot edit | access, suggestions.create and Content Manager read. |
| Mentions and replies | Widget on the admin home page | access and comments.read. |
| Configuration | Settings > Magic Editor X > Configuration | settings.read (view), settings.update (edit). |
| Custom blocks | Settings > Magic Editor X > Custom blocks | custom-blocks.manage. |
| Templates | Settings > Magic Editor X > Templates (templates, patterns and synced blocks, with versions of synced blocks) | templates.manage. |
| Audit trail | Settings > Magic Editor X > Audit trail | audit.read and settings.read. |
How Magic Editor X compares
Magic Editor X is free under the MIT license, and every feature below works in every installation. CKEditor 5 and TinyMCE sell collaboration, history and AI as paid plans or add-ons, and Strapi's own Blocks field has fewer block types. The table compares what each product documents. Competitor facts were checked against the linked vendor pages as of 2026-11; plans and prices change, so follow the links before you decide. "Not documented" means the vendor pages we checked say nothing either way. TinyMCE's page lists some features as included on its plan cards and as add-ons in its comparison table; this table follows the comparison table.
| Feature | Magic Editor X (MIT, free) | CKEditor 5 (paid plans) | TinyMCE (paid plans) | Strapi Blocks field and Strapi plans | | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | License and cost | MIT. No plans, add-ons or usage limits. | GPL 2+ for self-hosted open-source projects, or paid plans: Essential $144/month and Professional $289/month billed annually, with editor-load limits (pricing) | GPL 2+ open source, or paid plans: Essential $79/month and Professional $145/month billed annually, with editor-load limits (pricing) | The Blocks field is part of every Strapi edition. Content History and Strapi AI need the Growth or Enterprise plan (see below). | | Real-time co-editing | Yes, character-level, across several Node processes without sticky sessions | Add-on to Professional ($249/month billed annually) or included in Custom (pricing) | The real-time collaboration plugin was retired on 31 December 2023 (notice) | Not documented | | Comments on selected text | Yes, with replies, @mentions and optional e-mails | Add-on to Professional, or Custom (pricing) | Professional and Enterprise (pricing) | Not documented (Content Manager) | | Suggestions and track changes | Block-level only: a suggestion replaces, inserts or deletes a whole block and is accepted or rejected per block | Track changes, add-on to Professional, or Custom (pricing) | Suggested Edits, add-on to Professional ($79/month) or Enterprise (pricing) | Not documented | | Version history | Named and automatic versions, word-level comparison, restore the field or one block; blocks changed since the last publish are marked in the editor (2.12) | Revision history, add-on to Professional, or Custom (pricing) | Revision History, add-on to Professional or Enterprise (pricing) | Content History on Growth (14 days) and Enterprise (30 to 90 days). The docs describe viewing and restoring a version, not a comparison (Content History) | | AI writing help | With your own key: Anthropic, OpenAI or an OpenAI-compatible server such as a local model. Built-in actions, "Ask AI…" with your own instruction, owner-defined actions with a style guide, and AI review that adds suggestions | CKEditor AI, add-on from Essential ($133/month billed annually) (pricing) | TinyMCE AI, add-on from Essential ($133/month) (pricing) | Strapi AI (translations, alt text and captions in the Media Library, a Content-Type Builder assistant), included in Growth, a paid add-on on Enterprise (Strapi AI) | | Tables | Header row and column, alignment, merged cells, caption. Cells hold inline text only (no lists or images, because Editor.js has no nested blocks) | Yes (features) | Yes (plugins) | No. The Blocks validator accepts paragraph, heading, quote, list, image and code (source) | | Word and Google Docs content | Paste from Word, Google Docs, LibreOffice and web pages into blocks. Import .docx and Markdown files with a preview; export Word (.docx), PDF (browser print), Markdown and HTML, without quotas | Enhanced paste from Office from Essential; Import from Word from Professional; Export to Word and PDF on every plan with monthly quotas (pricing) | PowerPaste from Professional; Import from Word and Export to Word or PDF as usage add-ons (pricing) | Not documented | | Image crop | No crop inside the editor. On Strapi 5.54+ the image block opens the file in Strapi's Media Library (Crop & Focus) and takes the cropped file and its focus back (2.12) | Not documented | Image Editing from Essential (pricing) | The Media Library's Crop & Focus area editor crops, rotates and sets a focus area, free since Strapi 5.54 (Media Library) | | Accessibility checks of the content | 15 rules (alternative text, heading order, link text, table headers, contrast and more) with an optional publishing guard | Not documented | Accessibility Checker from Professional (pricing) | Not documented | | Readability and SEO hints | Deterministic rules in the browser, free: sentence and paragraph length, reading score (en, de, es), passive voice (en, de), headings, internal links, length, focus keyphrase; one-click Fix for safe findings | AI Review (grammar, style, tone, clarity) on selected paid plans; no readability score or SEO checks documented (CKEditor AI) | TinyMCE AI review "Improve readability" on paid subscriptions; no SEO checks documented (TinyMCE AI) | Not documented (Content Manager) | | Long documents and touch devices | Measured on every pull request: at 2,000 blocks a key press is painted in 16 ms (p95) and panels open in under 0.1 s on an Apple M3 Pro; touch checks in Pixel 7 and iPhone 13 emulation (numbers). Not measured on real phones or in Safari | Android and iOS browsers (all vendor-supported versions) are officially supported; the page gives no figures for long documents (support policy) | Mobile on the latest two releases of Android (Chrome) and iOS (Safari), with features listed as limited on mobile; no figures for long documents (mobile) | Not documented (Content Manager) |
Two headless CMS editors outside Strapi, for orientation:
| Product | Facts as of 2026-11 |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Payload (Lexical editor) | Multiplayer editing is announced under Payload for Enterprise but not available yet (page). The table feature is EXPERIMENTAL_TableFeature and is not on by default (features). Upload collections have a crop tool and a focal point selector in the admin (uploads). |
| Sanity (Portable Text) | Studio has real-time multiplayer editing with character-level sync (Studio). Comments, including comments on words and sentences in Portable Text, are a Growth plan feature (Comments). Images can have crop and hotspot tools (hotspot: true) (image type). |
Other Strapi editor plugins
The table above compares editor products and their paid plans. For the choice between Strapi plugins, Strapi editor plugins compared puts Magic Editor X next to Strapi Blocks, the community CKEditor plugin (@_sh/strapi-plugin-ckeditor), the official CKEditor plugin (@ckeditor/strapi-plugin-ckeditor, needs a CKEditor licence key), Tiptap by Notum (@notum-cz/strapi-plugin-tiptap-editor), Better Blocks (@qkix/strapi-plugin-better-blocks) and TinyMCE by SKLINET (@sklinet/strapi-plugin-tinymce), with a source link per claim (checked 2026-11-26). In short, the others are the better choice in these cases:
- Strapi Blocks for simple formatted text: nothing to install, maintained by Strapi.
- CKEditor 5 for Word-like editing with HTML output; its table cells can hold lists and headings and can nest tables. The community plugin is free under GPL and is by far the most used Strapi editor plugin (about 32,000 npm downloads a week).
- Better Blocks to keep the Strapi Blocks JSON format while adding tables, callouts and math. Magic Editor X stores Editor.js JSON and converts Blocks fields with a one-way
migratecommand.
Where Magic Editor X is weaker. These limits come from the engine, or the feature is not built yet:
- Suggestions work on whole blocks. A reviewer cannot suggest a change to a few words inside a block, because Editor.js 2.x keeps no change marks in saved data and every block tool owns its own markup (engine decision).
- Table cells and columns hold inline text and simple items only. Editor.js has no nested blocks.
- There is no crop or rotate inside the editor. The image block opens the asset in Strapi's Media Library (Strapi 5.54+ with the new Media Library, not on private upload providers); cropping there replaces the file everywhere it is used.
- AI review lands as block suggestions, so it inherits the block-level limit above: one suggestion replaces a whole block.
- Word import brings PNG, JPEG, GIF and WebP pictures, but not drawings in EMF or WMF, charts, shapes, linked pictures or pictures inside lists, tables and links (a placeholder marks each one; add it with the image tool). Picture captions, sizes, cropping and text wrapping are not taken over, and the pictures go to the Media Library's root folder. Word styles beyond headings, lists, tables, quotes, code and text marks are dropped. PDF export goes through the browser's print dialog ("Save as PDF"); there is no server-side PDF file.
- Readability and SEO hints are heuristics: syllables are counted by rule, so reading scores are estimates; there is a reading score for English, German and Spanish only and a passive-voice hint for English and German only. There is no AI-written meta description.
- Touch support is measured in Chromium device emulation (Pixel 7, iPhone 13) and in Playwright's WebKit build with iPhone 13 and iPad descriptors (Safari's engine on Linux and macOS, not iOS Safari on a device). Not measured: real phones and tablets, the on-screen keyboard itself, long-press text selection and a real finger drag (the drag of a block by "⋮⋮" is checked with scripted Pointer Events, because Playwright moves no finger in WebKit). Editor.js has no touch drag of its own; the plugin's hold-and-drag handle and Move up and Move down in the block menu are the two ways. Above 2,000 blocks a new block (Enter) takes about 0.1 s, because Editor.js checks every block on each change (see Performance and touch).
Performance and touch
Measured with npm run bench:browser (2026-11-25): the packed plugin in a Strapi 5.63 host, headless Chromium 159 on an Apple M3 Pro, an entry with synthetic text blocks (paragraphs, headings, nested lists, quotes, code, tables), published and then edited, with "Changes since last publish" on. Before = 2.12.0, after = this release.
| At 2,000 blocks | Before | After | Budget | | ------------------------------------------------- | --------------- | ----------- | --------------- | | Load until the editor is ready | 1.5 s | 1.3 s | 3 s | | Key press to next paint, p50 / p95 | 40 / 68 ms | 7 / 16 ms | p95 50 ms | | Long tasks while typing (300 keys) | 7, up to 108 ms | none | none over 50 ms | | Enter to the new block, p95 | 79 ms | 56 ms | 150 ms | | Paste 200 blocks | 6.7 s | 0.18 s | 1 s | | More tools opens | 1.5 s | 34 ms | 100 ms | | Quality / Comments / Version history / Find opens | 1.5 to 2.9 s | 61 to 88 ms | 100 ms | | JS heap after 1,000 key presses (after GC) | +7.9 MB | +5.0 MB | +30 MB |
At 5,000 blocks (the field's limit) typing went from p95 180 ms with 119 long tasks (up to 638 ms) to p95 24 ms with none, panels from 10 to 22 s to 0.14 to 0.2 s and loading from 3.4 to 2.2 s; at 1,000 blocks typing is p95 13 ms and panels open in about 55 ms. The CI job browser-bench runs the same measures on every pull request and prints them in the job summary; a GitHub runner is about 1.5 to 2 times slower (at 2,000 blocks: typing p95 12 ms, panels 85 to 160 ms, load 2.9 s), so timing budgets are reported there, not enforced. The JS heap was measured after forced garbage collection: the caches of 2.8.2 are capped and the heap stays flat while typing.
What made the difference (2.12.1): live regions inside blocks made every menu and dialog of the Design System hide each block from screen readers one by one, which Editor.js answered with work for every block and every change; blocks outside the viewport are no longer laid out (content-visibility); the indent tune no longer measures the page for every block it styles; in long documents the field saves in typing pauses; the problem count on More tools waits until typing pauses.
Touch. Checked in Chromium emulation of a Pixel 7 and an iPhone 13 and, since 2.13, in WebKit (Safari's engine) with the iPhone 13 and iPad (gen 7) descriptors (CI job browser-touch-webkit): a tap places the caret, the "+" toolbox, the block menu (with Move up and Move down), the inline toolbar, table editing and More tools work by tap; on phones the panels open as a bottom sheet over the text and the version history dialog fits the screen; full screen editing and the sheets stay above the on-screen keyboard; every button of the field, its sheets and dialogs is at least 44 px on touch screens (the comment, suggestion and change markers beside the text keep 32 px); the page never scrolls sideways; scrolling through 2,000 blocks had no long task. Moving blocks by touch (2.13): hold the "⋮⋮" handle for a moment, then drag; a line shows where the block lands, the page scrolls near the top and bottom edge, and lifting the finger moves the block like Move up and Move down do (blocks.move). A short tap still opens the block menu with Move up and Move down. Fixed for 2.13 after the WebKit run: on tablets (iPad) the 44 px handles covered the first letters of every block, so a tap there opened the block menu instead of placing the caret (Chromium at tablet width had the same problem); the text now starts after the handles on touch screens. The inline toolbar ran past the right edge of a tablet screen; it is now moved back into view. Not covered: real phones and tablets, iOS Safari itself (WebKit runs on Linux in CI), the on-screen keyboard (the visual viewport is simulated), long-press text selection (the Selection API is used) and a real finger drag (WebKit gets scripted Pointer Events and scripted scroll steps: Playwright's WebKit only taps).
Compatibility
| Plugin | Strapi | Node | Notes | | ------ | ------------------------------------------------------------------------------------- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | | 2.x | 5.38 or later (CI builds and tests 5.38.0 and 5.63.0; acceptance host: Strapi 5.63.0) | 22.12 or later (CI: 22, 24 and 26) | SQLite, PostgreSQL and MySQL/MariaDB through the Strapi database connection. Acceptance runs used SQLite and PostgreSQL 16. | | 1.x | 5.x | 22 | No longer developed. |
engines.nodeis>=22.12.0 <=26.x.x(2.5 declares the floor that sanitize-html 2.18 already required since 2.4.0); the 2.3 to 2.5 test runs used Node 22.23.1.- The admin uses the React, React Router, react-intl, styled-components and Design System versions of the Strapi admin (React 18, Design System 2.2.4 in Strapi 5.61, 2.3.1 in 5.62 and 5.63).
- Dropping files onto a field uses the Media Library drop zone that Strapi registers from 5.61; with an older Strapi or the legacy Media Library (
useLegacyMediaLibrary) Editor.js keeps its own file drop. - Console messages you may see in the admin that come from Strapi itself, not from the plugin: the
useRBACdeprecation warning, React Router future-flag warnings, the styled-components warning about an unknown propattribute(development mode only; it also appears on an edit view without any Magic Editor X field, because the Content Manager passes each field'sattributeto its own inputs; checked on Strapi 5.63.0), and the upgrade check to api.github.com when outgoing requests are blocked. - The editor uses Editor.js 2.31.7. Editor.js 2.32.0 is still a release candidate on npm (
2.32.0-rc.3on thenexttag, checked 2026-11-12) and is not used. Why the plugin stays on Editor.js is explained in docs/engine-decision.md. - Formulas are rendered with Temml 0.14 (MIT), loaded by the admin only when a field shows math.
magic-editor-x/reactworks with React 18 and 19 (peer^18.0.0 || ^19.0.0), in the browser and in server rendering, including React Server Components.magic-editor-x/vueneeds Vue 3.5 or later (optional peer^3.5.0; it is never installed by the plugin).magic-editor-x/renderandmagic-editor-x/blockshave no dependencies and no Node built-ins, so they run in Node, browsers and edge runtimes.- The GraphQL fields need
@strapi/plugin-graphql; without it nothing is registered.
Compatibility canary
A scheduled workflow, .github/workflows/canary.yml, runs every Monday at 04:17 UTC and on demand (Actions → Compatibility canary → Run workflow). It installs the newest Strapi 5.x release over the lockfile and tests the plugin on the newest Node.js release, the newest LTS and every LTS line inside engines.node: the build, the tests, the admin tests and verify as in ci.yml, and the Core Blocks bridge tests of the core-blocks job, which boot Strapi with the real entity validator.
A failure opens or updates one issue labelled compat ("Compatibility: Strapi X.Y.Z / Node A.B.C") with the failing jobs, the failing step and a log excerpt; the next green run closes it. The last passing and the last run are recorded in the closed issue "Compatibility canary state". A manual run can force a Strapi version (strapi) or Node.js versions (node), and dry-run prints the plan instead of writing issues. Pull requests that change the canary run it as a dry run. The logic lives in .github/scripts/compat-canary.mjs (byte-identical in every plugin of the workbench, unit-tested in compat-canary.test.mjs).
Install
npm install magic-editor-xEnable the plugin in config/plugins.ts (or config/plugins.js):
export default ({ env }) => ({
'magic-editor-x': {
enabled: true,
config: {
// optional, see Configuration
},
},
});Then rebuild the admin and restart:
npm run build
npm run developAdd the field in the Content-Type Builder: Add another field > Custom > Magic Editor X. In its settings you can set a placeholder, a preset and the other field presets, and a minimum height (120 to 2000 px).
After the first start, Super Admins can use everything. Other roles need the plugin actions listed in Admin API and permissions (Settings > Administration Panel > Roles > Plugins > Magic Editor X).
Configuration
Reference
All keys are optional. Infrastructure options live in config/plugins; the AI provider is edited at runtime in Settings > Magic Editor X > Configuration.
| Key | Type | Default | Effect |
| --------------------------------------------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| debug | boolean | false | Writes debug log lines (never content or personal data). |
| rawHtml | 'sanitize' | 'allow' | 'disable' | 'sanitize' | Raw HTML block on save: sanitize removes scripts, event handlers, iframes and unsafe URLs; allow stores the HTML as typed; disable empties it. |
| sanitizeOnSave | boolean | true | Normalise and sanitise Magic Editor X values on every Document Service write. Turning this off is not recommended. |
| encryptionKey | string (32+ characters) | unset | Key for the stored AI provider key. Prefer the MAGIC_EDITOR_X_ENCRYPTION_KEY environment variable. |
| uploads.maxImageBytes | integer | 10485760 (10 MiB) | Largest image accepted by file or URL (hard cap 500 MiB). |
| uploads.maxFileBytes | integer | 20971520 (20 MiB) | Largest attachment. |
| uploads.maxMediaBytes | integer | 52428800 (50 MiB) | Largest video or audio file copied from a pasted URL (POST /magic-editor-x/media/byUrl, 2.4; hard cap 200 MiB). WebVTT tracks are capped at 512 KiB. |
| uploads.allowPrivateOrigins | string[] | [] | Exact origins (for example http://media.intranet.example.test:9000) that images and media by URL may fetch although they resolve to a private address (2.4). Redirects from them are never followed; the connection is pinned to the resolved address, and link-local and cloud metadata addresses stay refused (400), also when a listed host name resolves to them. At most 20. |
| linkPreview.enabled | boolean | true | Link preview cards. When false, GET /magic-editor-x/link answers 404.

