diff --git a/CHANGELOG.md b/CHANGELOG.md
index e9dfcbe..172ff87 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,17 @@
# Changelog
+## [Unreleased]
+
+### Changed (editor field: native Strapi look)
+
+- **Strapi Design System icons in the editor.** Block types, block menus and tool buttons use @strapi/icons where an equivalent exists (code, image, gallery, video, audio, link, Media Library, person, table, component, copy, delete, add, upload, check, colour, AI, underline, strikethrough, arrows, warning, table of contents); the editor-specific shapes (alignment, columns, borders, merge and split, sub- and superscript) keep their own icons.
+- **Undo and redo** use one DS arrow, mirrored for undo (the two-arrow icon read as "refresh"). @strapi/icons has no undo or redo icon.
+- **Version history** uses the DS underlined tabs (`variant="simple"`, as the Content Manager's Draft and Published tabs).
+- **Comment and suggestion markers** show a DS tooltip instead of the browser's `title`.
+- **Annotation Apply** uses the DS primary button colours in both themes.
+- **Full screen** keeps Tab inside the editor (it is a modal dialog), like the DS focus trap.
+- **Code font.** The Design System theme has no font tokens; the shortcut help and the preview read a plugin constant instead of the undefined `theme.fonts.code`.
+
## [2.8.3](https://github.com/Schero94/Magic-Editor-X/compare/v2.8.2...v2.8.3) (2026-11-20)
diff --git a/admin/src/components/EditorField/CommentMarkers.jsx b/admin/src/components/EditorField/CommentMarkers.jsx
index b28b0a7..50555ce 100644
--- a/admin/src/components/EditorField/CommentMarkers.jsx
+++ b/admin/src/components/EditorField/CommentMarkers.jsx
@@ -1,5 +1,6 @@
import { useLayoutEffect, useRef, useState } from 'react';
import { Discuss } from '@strapi/icons';
+import { Tooltip } from '@strapi/design-system';
import styled from 'styled-components';
/**
@@ -114,26 +115,29 @@ export const CommentMarkers = ({ containerRef, holderRef, counts, blockIds, vers
return (
{positions.map(({ blockId, count, top, index }) => (
- onOpen(blockId)}
>
-
- {count > 99 ? '99+' : count}
-
+ onOpen(blockId)}
+ >
+
+ {count > 99 ? '99+' : count}
+
+
))}
);
diff --git a/admin/src/components/EditorField/EditorToolbar.jsx b/admin/src/components/EditorField/EditorToolbar.jsx
index e4236a1..ae4874f 100644
--- a/admin/src/components/EditorField/EditorToolbar.jsx
+++ b/admin/src/components/EditorField/EditorToolbar.jsx
@@ -9,7 +9,8 @@ import {
Typography,
VisuallyHidden,
} from '@strapi/design-system';
-import { ArrowClockwise, ArrowsCounterClockwise, Collapse, Expand } from '@strapi/icons';
+import { Collapse, Expand } from '@strapi/icons';
+import { RedoIcon, UndoIcon } from './icons';
import styled from 'styled-components';
import { FieldToolsMenu } from './FieldToolsMenu';
import { exitTools } from '../../editor/field-tools.mjs';
@@ -136,7 +137,7 @@ export const EditorToolbar = ({
onClick={onUndo}
disabled={!ready || !canUndo}
>
-
+
-
+
>
)}
diff --git a/admin/src/components/EditorField/HistoryModal.jsx b/admin/src/components/EditorField/HistoryModal.jsx
index fa2c7f5..9d00f13 100644
--- a/admin/src/components/EditorField/HistoryModal.jsx
+++ b/admin/src/components/EditorField/HistoryModal.jsx
@@ -429,6 +429,8 @@ export const HistoryModal = ({
{preview.content ? (
(value === 'changes' ? showChanges() : setTab('preview'))}
>
diff --git a/admin/src/components/EditorField/ShortcutsDialog.jsx b/admin/src/components/EditorField/ShortcutsDialog.jsx
index c95d3f3..7741841 100644
--- a/admin/src/components/EditorField/ShortcutsDialog.jsx
+++ b/admin/src/components/EditorField/ShortcutsDialog.jsx
@@ -1,6 +1,7 @@
import { Box, Button, Flex, Modal, Typography } from '@strapi/design-system';
import styled from 'styled-components';
import { shortcutKeyName } from '../../editor/field-tools.mjs';
+import { CODE_FONT } from '../../editor/code-font.mjs';
/**
* Keyboard shortcut help (Ctrl/Cmd + Alt + /; 2.7.8: Ctrl/Cmd + / opens the Editor.js block menu). Lists the editor's own shortcuts,
@@ -9,7 +10,7 @@ import { shortcutKeyName } from '../../editor/field-tools.mjs';
const Keys = styled.kbd`
display: inline-block;
- font-family: ${({ theme }) => theme.fonts?.code || 'monospace'};
+ font-family: ${CODE_FONT};
font-size: ${({ theme }) => theme.fontSizes[1]};
color: ${({ theme }) => theme.colors.neutral800};
background: ${({ theme }) => theme.colors.neutral100};
diff --git a/admin/src/components/EditorField/SuggestEditor.jsx b/admin/src/components/EditorField/SuggestEditor.jsx
index f489055..d1266b2 100644
--- a/admin/src/components/EditorField/SuggestEditor.jsx
+++ b/admin/src/components/EditorField/SuggestEditor.jsx
@@ -11,7 +11,7 @@ import {
Textarea,
Typography,
} from '@strapi/design-system';
-import { ArrowClockwise, ArrowsCounterClockwise } from '@strapi/icons';
+import { RedoIcon, UndoIcon } from './icons';
import styled from 'styled-components';
import { buildTools, disposeTools, editorI18n, createUndoManager, INLINE_TOOLS } from '../../editor/tools';
import { prepareEditorValue } from '../../editor/sanitize';
@@ -364,7 +364,7 @@ export const SuggestEditor = ({
onClick={() => undoRef.current && undoRef.current.undo()}
disabled={!ready || !undoState.canUndo}
>
-
+
undoRef.current && undoRef.current.redo()}
disabled={!ready || !undoState.canRedo}
>
-
+
{pending ? (
{positions.map(({ blockId, count, top, index, besideComment }) => (
- onOpen(blockId)}
>
-
- {count > 99 ? '99+' : count}
-
+ onOpen(blockId)}
+ >
+
+ {count > 99 ? '99+' : count}
+
+
))}
);
diff --git a/admin/src/components/EditorField/icons.jsx b/admin/src/components/EditorField/icons.jsx
new file mode 100644
index 0000000..4fe3460
--- /dev/null
+++ b/admin/src/components/EditorField/icons.jsx
@@ -0,0 +1,13 @@
+import { ArrowClockwise } from '@strapi/icons';
+import styled from 'styled-components';
+
+/**
+ * Undo and redo icons (2.7.8). @strapi/icons 2.3 has no undo or redo icon. Redo is
+ * `ArrowClockwise`; undo is the same icon mirrored, so the pair reads as back and forward (the
+ * two-arrow `ArrowsCounterClockwise` used before read as "refresh").
+ */
+export const UndoIcon = styled(ArrowClockwise)`
+ transform: scaleX(-1);
+`;
+
+export const RedoIcon = ArrowClockwise;
diff --git a/admin/src/components/EditorField/index.jsx b/admin/src/components/EditorField/index.jsx
index ed13687..d618467 100644
--- a/admin/src/components/EditorField/index.jsx
+++ b/admin/src/components/EditorField/index.jsx
@@ -1667,12 +1667,42 @@ const EditorFieldBody = ({
setFocusMode(false);
}
};
+ // 2.7.8: Tab stays inside the full screen editor (role="dialog", aria-modal), the way the DS
+ // FocusTrap wraps focus: from the last stop to the first and back. Dialogs opened from the
+ // editor live in their own portal and trap focus themselves.
+ const onTab = (event) => {
+ const frame = frameRef.current;
+ if (event.key !== 'Tab' || event.defaultPrevented || !frame || !frame.contains(document.activeElement))
+ return;
+ const stops = Array.from(
+ frame.querySelectorAll(
+ 'a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]), [contenteditable="true"]'
+ )
+ ).filter(
+ (element) => element.getClientRects().length > 0 && !element.closest('[inert], [aria-hidden="true"]')
+ );
+ if (!stops.length) return;
+ const first = stops[0];
+ const last = stops[stops.length - 1];
+ const active = document.activeElement;
+ if (!event.shiftKey && (active === last || last.contains(active))) {
+ event.preventDefault();
+ event.stopPropagation();
+ first.focus();
+ } else if (event.shiftKey && (active === first || first.contains(active))) {
+ event.preventDefault();
+ event.stopPropagation();
+ last.focus();
+ }
+ };
+ window.addEventListener('keydown', onTab, true);
const previous = document.body.style.overflow;
document.body.style.overflow = 'hidden';
document.addEventListener('keydown', onKey);
return () => {
document.body.style.overflow = previous;
document.removeEventListener('keydown', onKey);
+ window.removeEventListener('keydown', onTab, true);
};
}, [fullscreen]);
diff --git a/admin/src/components/RenderedContent/index.jsx b/admin/src/components/RenderedContent/index.jsx
index 0beff95..9a355f3 100644
--- a/admin/src/components/RenderedContent/index.jsx
+++ b/admin/src/components/RenderedContent/index.jsx
@@ -5,6 +5,7 @@ import { MagicEditorXContent } from '../../../../shared/frameworks/react.mjs';
import { sanitizeRawPreview } from './sanitize-raw';
import { loadMath } from '../../editor/math-view';
import { MATH_ATTRIBUTE } from '../../../../shared/sanitize-policy.mjs';
+import { CODE_FONT } from '../../editor/code-font.mjs';
/**
* Rendered output of Magic Editor X content inside the admin (field preview,
@@ -214,7 +215,7 @@ const Prose = styled.div`
}
& pre,
& code {
- font-family: ${({ theme }) => (theme.fonts && theme.fonts.code) || 'monospace'};
+ font-family: ${CODE_FONT};
font-size: ${({ theme }) => theme.fontSizes[1]};
overflow-wrap: normal;
}
diff --git a/admin/src/editor/code-font.mjs b/admin/src/editor/code-font.mjs
new file mode 100644
index 0000000..0e00044
--- /dev/null
+++ b/admin/src/editor/code-font.mjs
@@ -0,0 +1,6 @@
+/**
+ * Monospace font stack for code in the admin (2.7.8). The Strapi Design System 2.3 theme has no
+ * font tokens (`theme.fonts` does not exist; the DS sets only the body font globally), so the
+ * plugin keeps one stack here instead of reading an undefined `theme.fonts.code`.
+ */
+export const CODE_FONT = "'SFMono-Regular', Menlo, Consolas, monospace";
diff --git a/admin/src/editor/tools/dom.js b/admin/src/editor/tools/dom.js
index 118b7e8..b7e3718 100644
--- a/admin/src/editor/tools/dom.js
+++ b/admin/src/editor/tools/dom.js
@@ -4,6 +4,8 @@
* icons below are static strings written in this file (trusted).
*/
+import { DS_ICONS } from './ds-icons';
+
/**
* Creates an element.
* @param {string} tag - Tag name.
@@ -118,49 +120,42 @@ export const editable = ({
return node;
};
+/**
+ * Tool icons. 2.7.8: Strapi Design System icons where @strapi/icons has an equivalent
+ * (`ds-icons.js`); the hand-drawn SVGs remain for alignment, columns, borders and the other
+ * editor-specific shapes the DS does not have.
+ */
export const ICONS = {
- alert:
- '',
+ alert: DS_ICONS.alert,
toggle:
'',
- code: '',
- person:
- '',
- image:
- '',
- gallery:
- '',
- video:
- '',
- audio:
- '',
- arrowLeft:
- '',
- arrowRight:
- '',
+ code: DS_ICONS.code,
+ person: DS_ICONS.person,
+ image: DS_ICONS.image,
+ gallery: DS_ICONS.gallery,
+ video: DS_ICONS.video,
+ audio: DS_ICONS.audio,
+ arrowLeft: DS_ICONS.arrowLeft,
+ arrowRight: DS_ICONS.arrowRight,
delimiter:
'',
- link: '',
+ link: DS_ICONS.link,
button:
'',
entry:
'',
block:
'',
- media:
- '',
+ media: DS_ICONS.media,
checklist:
'',
marker:
'',
- underline:
- '',
- strike:
- '',
+ underline: DS_ICONS.underline,
+ strike: DS_ICONS.strike,
tooltip:
'',
- sparkle:
- '',
+ sparkle: DS_ICONS.sparkle,
alignLeft:
'',
alignCenter:
@@ -171,15 +166,11 @@ export const ICONS = {
'',
variant:
'',
- check:
- '',
- plus: '',
- minus:
- '',
- upload:
- '',
- trash:
- '',
+ check: DS_ICONS.check,
+ plus: DS_ICONS.plus,
+ minus: DS_ICONS.minus,
+ upload: DS_ICONS.upload,
+ trash: DS_ICONS.trash,
border:
'',
background:
@@ -188,17 +179,16 @@ export const ICONS = {
'',
mention:
'',
- toc: '',
+ toc: DS_ICONS.toc,
lineNumbers:
'',
math: '',
// 2.5: component block (four squares, like a component of fields).
- component:
- '',
+ component: DS_ICONS.component,
inlineMath:
'',
footnote:
'',
// 2.5: "Copy block" in the block menu.
- copy: '',
+ copy: DS_ICONS.copy,
};
diff --git a/admin/src/editor/tools/ds-icons.js b/admin/src/editor/tools/ds-icons.js
new file mode 100644
index 0000000..05669ab
--- /dev/null
+++ b/admin/src/editor/tools/ds-icons.js
@@ -0,0 +1,80 @@
+import { createElement } from 'react';
+import { renderToStaticMarkup } from 'react-dom/server';
+import { ThemeProvider } from 'styled-components';
+import {
+ Check,
+ Code,
+ Duplicate,
+ GridFour,
+ GridNine,
+ Image,
+ Images,
+ Link,
+ List,
+ Minus,
+ MusicNotes,
+ Palette,
+ Play,
+ Plus,
+ PuzzlePiece,
+ Sparkle,
+ StrikeThrough,
+ Trash,
+ Underline,
+ Upload,
+ User,
+ WarningCircle,
+ ArrowLeft,
+ ArrowRight,
+} from '@strapi/icons';
+
+/**
+ * Strapi Design System icons as SVG markup for the Editor.js tools (2.7.8, native look). Editor.js
+ * takes icons as strings (toolbox `icon`, tune and popover items, `innerHTML` of tool buttons), so
+ * the @strapi/icons React components are rendered once with `renderToStaticMarkup`. The icons read
+ * `theme.colors` (styled-components `useTheme`) only to map token fills; with `fill="currentColor"`
+ * an empty theme is enough. Tools keep their own SVG only where @strapi/icons has no match.
+ */
+const NO_THEME = { colors: {} };
+
+/**
+ * @param {import('react').ComponentType