WEBINARNo AI, your AI, or a team of agents: Introducing CKEditor Editing Toolkit. REGISTER NOW!
Sign up (with export icon)

CKEditor 5 changelog

Contribute to this guideShow the table of contents

This is the CKEditor 5 changelog guide. Here you will find information about the most important changes introduced in the release, new features, and bug fixes.

Information about both major and minor breaking changes is available, too, if the release introduces them. You can read more about breaking changes in CKEditor 5 in the Versioning policy guide.

You can find more information about each release in the blog posts linked at the start of each entry.

This guide covers the three latest releases of CKEditor 5. For older releases, see the Previous releases section.

CKEditor 5 v49.2.0 release

We are happy to announce the release of CKEditor 5 v49.2.0.

Release highlights

⭐ Editing Toolkit: compare against any stored version

Compare in the Editing Toolkit now accepts three kinds of base version: a snapshot from the current session (still the most precise), a snapshot from an earlier session, for example from before a page reload, and plain HTML that your application already stores, for example in its database. With plain HTML, Compare finds what changed in the editor since that version and what changed in the incoming one, then merges both. This covers cases where no snapshot exists: merging branched copies of a document, bringing back edits made in an exported Word file, or updating a document through your API while others keep editing in real-time collaboration.

Snapshots also keep stable data-id attributes for the lifetime of the editor now, so consecutive AI requests refer to the same elements. See Using an HTML string as a snapshot.

⭐ CKEditor AI: suggest all changes and arrange Quick Actions

AI Review can now turn all remaining changes into Track Changes suggestions in one click with “Suggest all” and “Suggest remaining”, so a whole AI review goes through your usual approval flow. Such changes are marked “Suggested” instead of “Accepted”, which is a minor breaking change if you read AIReviewCheckResultChange#status.

You can also shape the AI Quick Actions menu to your product: config.ai.quickActions.items sets the order and categories of actions, and custom actions get their own category and icon. The AI Review navigation panel and the AI Chat preview balloon can be dragged aside when they cover the content.

Table row resize and formatting in new rows and columns

With the new TableRowResize plugin, users can resize a table row by dragging the bottom edge of a cell, or set an exact height in the table cell properties. In track changes mode, all row height changes in a table appear as a single format suggestion. See Table column and row resize.

New rows and columns now keep the formatting of the row or column they were inserted next to, so users no longer restyle every added cell. With the table cell properties feature enabled, this covers borders, background color, padding, and alignment. Text formatting carries over even without this feature, also when users press Tab in the last cell, paste into a table, or split a cell.

Text emoticons turn into emoji

Emoticons such as :), <3, and XD now turn into emoji as users type, thanks to the new emoticons group of the Automatic text transformation feature (the TextTransformation plugin). It inserts emoji characters directly, so it does not need the Emoji plugin. The group is enabled by default, so if you already load TextTransformation, your users get it after the upgrade. To keep emoticons as text, add 'emoticons' to config.typing.transformations.remove. See Disabling emoticons.

Multi-root editing in Angular

The multi-root editor gives one document several editable areas that share one toolbar, configuration, and undo stack, for example a page layout with a header, a main column, and a sidebar. Angular applications can now use it with the new <ckeditor-multi-root> component in @ckeditor/ckeditor5-angular v13.1.0. See the Angular multi-root guide and the Angular v13.1.0 release notes.

Other improvements and fixes

  • Proposed changes: Proposed changes now look and behave the same in AI Chat and the Editing Toolkit. Edits inside block quotes or layout tables show as smaller, separate changes, they apply faster, and split or merged paragraphs display correctly.
  • Real-time collaboration: the editor starts faster, sessions created with initial data open reliably for every user, and users who went offline can rejoin their session in more cases. See Real-time collaboration.
  • Comments and suggestions: inline annotations now open from their markers in a read-only editor too, and no longer take the focus away from forms that create suggestions, such as table properties. The presence list marks you with “(you)”.

MINOR BREAKING CHANGES

  • ai: The AIReviewCheckResultChange#status of a change taken with the “Suggest” action in AI Review is now 'suggested' instead of 'accepted', and AIReviewCheckRun#acceptedChangesCount no longer counts it. Use the new AIReviewCheckRun#suggestedChangesCount to count such changes.

  • merge-fields: The merge field preview badge icons and the block and image placeholders can be themed with the new --ck-merge-fields-preview-badge-icon-color, --ck-merge-fields-preview-badge-warning-icon-color, --ck-merge-fields-block-placeholder-color, and --ck-merge-fields-image-placeholder-color CSS custom properties. The block placeholder follows the block outline color by default, and the merge field icon in the badge uses the primary text color (--ck-color-text-primary). The badge icons are drawn on ::after, the block placeholder on ::before, and the image placeholder as a mask on the img element, so custom CSS that replaces the content of the badge or the background-image of a placeholder no longer applies.

  • slash-command: The slash command list now shows each command on a single line, with an optional description after the title. The default commands no longer have descriptions, and some of them were renamed to match the menu bar (for example, “Insert table” is now “Table”). Their former descriptions and titles are now search aliases, so the commands can still be found by the same phrases.

    The --ck-slash-command-description-width CSS variable has been removed. Use --ck-slash-command-button-width (now 320px by default) to change the list width. The icons no longer have a background, so the --ck-slash-command-icon-background-color and --ck-slash-command-icon-border-radius CSS variables have been removed too.

Features

  • mention, source-editing, ui: Added theme tokens for the button states: --ck-button-on-border, --ck-button-active-border-color, --ck-button-focus-shadow, --ck-button-disabled-focus-shadow, and --ck-button-focus-outline with --ck-button-focus-outline-offset (the outline shows on keyboard focus only). Added --ck-list-item-button-border and --ck-list-button-on-focus-border-color for lists, and --ck-editor-editable-border-color and --ck-editor-editable-focus-shadow for the editing area. The default look does not change. Closes #19351.

  • ai: DocumentCompare#computePatch() and DocumentCompare#computeChanges() can now take the original document data (a string, or an object keyed by root name) instead of a snapshot. This makes it possible to compute document diffs where a snapshot cannot be used, for example to merge two versions of a document into the editor.

    When the data is passed directly, a three-way diff is used: the original data is compared both with the current editor content and with the processed data, and both change sets are used to evaluate the final diff. Data IDs are not used in this case, elements are paired by their content.

  • ai: DocumentCompare#computePatch() and DocumentCompare#computeChanges() can now operate on a snapshot made in a past editing session (for example, before a page reload) or even for another document. Previously, such a snapshot could not be applied.

    When such a snapshot is passed, a three-way diff is used: the snapshot content is compared both with the current editor content and with the processed data, and both change sets are used to evaluate the final diff.

  • ai: The “Complete” menu in AI Review now offers the “Suggest all” and “Suggest remaining” actions when track changes are available, so all remaining changes can be added as suggestions at once. While track changes mode is on, they take the place of the “Accept all” and “Accept remaining” actions.

  • ai: Introduced config.ai.quickActions.items to set the order of AI Quick Actions and their categories in the dropdown and the menu bar. Actions can also be moved to different categories, and new categories with their own label and icon can be added.

  • ai: Custom AI Quick Actions defined in config.ai.quickActions.extraCommands can now set the group (category) they belong to and their own icon. The icon is displayed when the action is at the top level of the AI Quick Actions list or in a toolbar.

  • ai: The AI Review navigation panel can now be dragged away from the change it points at. The panel and the AI Chat preview balloon now stay where they were dropped while the user moves between changes, until the new “Reset position” button brings them back next to the active change.

  • ai: The data-id attributes in snapshots created by DocumentCompare#makeSnapshot() are now stable for the lifetime of the editor instance.

  • engine: Introduced the normalizeLengthStyleValue() helper, which normalizes numerical style values so that equivalent notations of the same value are equal, for example 2.0em and 2em. See #20272.

  • source-editing-enhanced: The default theme of the enhanced source editing code editor reads its colors from the new --ck-source-editing-enhanced-* CSS custom properties: the background, text, cursor, gutter, active line, selection, and code completion list colors, and the syntax colors by role (for example --ck-source-editing-enhanced-syntax-keyword-text-color). The default look does not change, and the code editor can be themed together with the rest of the editor, also when CKEditor 5 is installed from CDN. The properties apply to the default theme only: the 'dark' theme and dark custom themes keep their own colors, and a light custom theme overrides them for the parts it styles.

  • table: Introduced the table row resize feature. Add the TableRowResize plugin to let users set the height of a table row by dragging the bottom edge of its cells, the same way the table column resize feature resizes columns. Closes ckeditor/ckeditor5#11637.

    Row heights are stored in pixels in the height style of <tr> elements. Heights in points, for example pasted from Microsoft Word or Google Docs, are converted to pixels. When the table cell properties feature is loaded, its “Height” field sets the height of the row instead of the cell.

  • table: Rows and columns inserted into a table now keep the formatting of the row or column the user acted on. When the table cell properties feature is enabled, new cells inherit the cell styles of the corresponding cells (borders, background color, padding, and alignment). Typing in a new empty cell continues the text formatting found at the start of the corresponding cell, as well as its paragraph alignment. This applies to inserting rows above or below, inserting columns to the left or right, pressing Tab in the last table cell, expanding a table while pasting, and splitting a cell. Text formatting is also continued in editors without the table cell properties feature. Closes #12712.

    Rows and columns inserted at the boundary of the heading or footer section now become part of the section of the row or column the user acted on. For example, a row inserted below the last heading row becomes a heading row, and a row inserted above the first footer row becomes a footer row. Rows and columns added next to a table made of heading or footer rows only, or of heading columns only, still become regular body rows and columns.

    The TableUtils#insertRows() and TableUtils#insertColumns() methods accept the new referenceRow and referenceColumn options that enable this behavior. Calls without these options work as before.

  • table: Added support for more size units to the TableScroll plugin. Previously, only the % and px units were supported. It now supports any unit specified in the width.

  • track-changes: The table row resize feature is now supported in the track changes mode. Resizing table rows, by dragging their edges or with the “Height” field in the table cell properties, creates a format suggestion for the changed row, cell, and table heights. All height changes of a table are grouped in one suggestion.

  • typing: Introduced the emoticons text transformation group. It changes text emoticons, such as :), <3, or XD, into emoji while typing. The group is enabled by default, so editors that use TextTransformation with the default configuration will also change these emoticons. To disable the group, add emoticons to the config.typing.transformations.remove option. Closes #17737.

    To insert any emoji from the toolbar or by typing : and the emoji name, use the emoji feature.

Bug fixes

  • emoji, find-and-replace, fullscreen, image, minimap, special-characters, style, widget: Several feature packages read the semantic color roles instead of the foundation color tokens. The default look does not change, except that the fullscreen sidebar header uses the UI text color (--ck-color-text) when the document outline styles are not loaded. Before, it took the text color of the page. The changed parts:

    • Borders and dividers in the special characters, image insert, emoji, and style UI follow --ck-color-border-control and --ck-color-divider.
    • The minimap background, the widget resize handle border, the style previews, and the focus ring gaps in the special characters and emoji grids follow --ck-color-surface-canvas.
    • The image upload icon follows --ck-color-text-inverse and --ck-color-feedback-success.
    • The find and replace results counter text color can be set with the new --ck-find-and-replace-form-results-counter-text-color CSS custom property.

    A theme that sets these roles to a custom value also changes these parts.

  • editor-classic, engine, utils: The sticky toolbar of the classic editor no longer covers the selection when the editor is placed in a scrollable container and the toolbar sticks to the top of that container. Before, the container was scrolled so that the selection ended up behind the toolbar. Integrations with their own sticky UI can use the new getAncestorScrollPadding option of the EditingView#scrollToTheSelection event data for the same purpose. Closes #20265.

  • emoji, mention: The emoji hint (“Keep on typing to see the emoji.”) no longer shows a focus ring when the emoji suggestion list opens. The mention list no longer shows the focus ring on a disabled item that is the only item in the list.

  • ai: AI Review now marks a change taken with the “Suggest” action as “Suggested” instead of “Accepted”.

  • ai: Improve styling of the “Proposed changes” component when used outside the AI chat.

  • ai: AI Chat and Editing Toolkit now correctly present split and merge changes in the proposed changes sidebar UI component.

  • ai: The eye toggle in the AI Review navigation panel now says “Expand all underlines” and “Collapse to underlines” instead of “Show changes” and “Hide changes”, so it is clear that it affects all changes in the document.

  • ai: AI changes that insert a table, or another element inserted as a whole, with block quotes or other container elements inside can now be previewed and applied. Previously, such changes were reported as not supported by the editor, or the container elements ended up nested in themselves.

  • ai: Clicking a link in a change proposed by AI Chat, AI Quick Actions, or AI Review no longer opens the link.

  • clipboard: The drag and drop target line is now shown in the right place when the editor’s overlay layer is placed in a positioned or scrolled container, for example, when the editor is in a scrollable shadow tree. Before, the line was moved by the container’s offset and moved twice as far as the content when the container was scrolled.

  • clipboard: Content dragged out of the editor into another field, for example a plain text input, is no longer lost. Closes #20274.

  • collaboration-core: The balloon of an inline suggestion keeps the shadow of other balloons (--ck-shadow-surface-floating) while the suggestion is focused. Before, the shadow became smaller on focus. Its focus shadow also follows --ck-interactive-focus-shadow.

  • comments: Inline annotations are now displayed after clicking a comment or a suggestion marker when the editor is in read-only mode. Closes ckeditor/ckeditor5#16238.

  • comments: A comment thread whose commented content was removed uses the neutral border color (--ck-color-border-container) for its annotation type border again, instead of the comment accent. The border is visible only in a theme that sets --ck-annotation-type-border-width.

  • comments: The inline annotation no longer takes the focus away from a balloon form, for example, the table properties form, when the form creates a suggestion. Clicking the same place in a comment or a suggestion marker also reopens its inline annotation after it was closed with the Esc key.

  • core: The Czech labels of the “Wrap text” and “Break text” image and media style buttons are no longer swapped.

    Thanks to @jakubpivonka.

  • document-outline: The document outline in a multi-root editor no longer highlights a heading from the bottom of the viewport when the next root starts to scroll into view.

  • engine: The browser spell checker should no longer mark the last word of a formatted text as misspelled when typing right after it, for example after using an autoformat such as **bold** or after turning off bold or italic at the end of a word. Closes #20267.

  • engine: The editor no longer crashes when an attribute is set on a range that covers several adjacent text insertions made in the same change block. Closes #20270.

  • find-and-replace: The editor no longer crashes when a root containing search results is detached in a multi-root editor.

  • find-and-replace: The find and replace feature should no longer match the text inserted by the replace button. Previously, if the replacement text contained the search phrase (for example, when replacing “Hello” with “HelloHello”), the highlight stayed on or wrapped back to the inserted text instead of moving to the next result, and subsequent replacements kept modifying it endlessly. Starting a new search still finds such matches.

  • font: Font sizes written in a different notation than the configured options, for example 2.0em or 02PX for the 2em or 2px options, are now matched with these options. Previously, such values were not marked as active in the font size dropdown and the menu bar, and they were dropped on upcast when fontSize.supportAllValues was disabled. Closes #20272.

    With fontSize.supportAllValues enabled, all numerical font sizes in the loaded content are now normalized, including the ones not present in the configuration. For example, 13.50px is now output as 13.5px.

  • footnotes: Footnotes inserted into a root of a multi-root editor are now numbered in the order of roots, even if the roots between it and the next root containing footnotes have no footnotes. Previously, such footnotes were appended to the end of the list and received a higher number than footnotes from the later roots.

  • image: Keyboard navigation in the insert image dropdown now uses the ↑ and ↓ keys instead of Tab, like in other list-like dropdowns. If the dropdown contains a view other than a button, for example, a text field added by a custom integration, Tab is still used, so the arrow keys can move the caret in that field. Closes #20256.

    Thanks to @VladyslavLevoshko.

  • line-height: Line heights written in a different notation than the configured options, for example 2.0 or 02.50 for the 2 or 2.5 options, are now matched with these options. Previously, such values were dropped on upcast, or, when lineHeight.supportAllValues was enabled, they were not marked as active in the line height dropdown and the menu bar and were kept even when equal to lineHeight.defaultValue. See ckeditor/ckeditor5#20272.

    With lineHeight.supportAllValues enabled, all numerical line heights in the loaded content are now normalized, including the ones not present in the configuration. For example, 1.750 is now output as 1.75.

  • link: Going back from the link form or the link properties view to the link toolbar, also by submitting the form, now moves the focus back to the toolbar button that had focus before. Previously, the focus went to the editing area, so keyboard users had to focus the toolbar again. Closes #18013.

  • list: Inserting or pasting content, such as a table, an image, paragraphs, or list items, at the beginning of a list no longer changes the style, start index, or reversed order of the whole list. Closes #20264.

  • paste-from-office: Style definitions that Microsoft Excel places inside the pasted content are now kept for style processing instead of being discarded. Recent desktop Excel builds and Excel Online use this clipboard format. The style definitions are still not pasted as visible text. See #20188. Closes #20268.

  • paste-from-office-enhanced: Tables pasted from Microsoft Excel now keep their cell formatting, such as borders, background colors, bold text, and font colors and sizes. Previously, the formatting was lost when Excel placed the cell styles inside the pasted content, as recent desktop Excel builds and Excel Online do. See ckeditor/ckeditor5#20268.

  • real-time-collaboration: Users can now reconnect to a flushed editing session if nobody else changed the document while they were offline. Before, with revision history enabled, such a reconnection always ended with a read-only editor and the “Synchronization issue” warning.

  • real-time-collaboration: Fixed the editor failing to initialize when connecting to a real-time collaboration session created with the use_initial_data: true option. The second and subsequent clients could fail with the attribute-operation-attribute-exists error, for example when the initial data contained a list with formatted items, and the session could no longer be used.

  • revision-history: Fixed an error that resulted in a corrupted revision that had changes attributed to a null user which led to further problems.

    The revision was corrupted when an offline user reconnected to an editing session, for which the current revision had started in an earlier editing session and was continued (config.revisionHistory.resumeUnsavedRevision set to true (default)).

  • revision-history: The “Back to editing” button in the revision viewer now uses the styles of the other action buttons. It follows the theme customizations of action buttons and no longer turns light gray while it is pressed.

  • slash-command: The Emoji and Footnote slash commands now show translated titles instead of always displaying them in English.

  • table: Inserting several rows or columns inside the heading section of a table no longer leaves some of the new cells marked as regular data cells.

    Inserting rows into the heading section of a table whose columns are all heading columns, or columns into the heading section of a table whose rows are all heading rows, no longer expands the heading section over the whole table. It also no longer removes the footer rows of such a table.

  • table: The column resize cursor no longer disappears while dragging a column edge when the editor is in a shadow root.

  • table: The height attribute of a table cell that also has the height style, for example in a table pasted from Microsoft Excel, is no longer kept by General HTML Support. Removing the cell height in the table cell properties now makes the cell lower.

  • table: The mergeTableCells command and the directional merge commands (mergeTableCellRight, mergeTableCellLeft, mergeTableCellUp and mergeTableCellDown) are now disabled when the selection contains both header and data cells. Previously, they were reported as enabled in this case, even though such cells cannot be merged.

  • table: Content tables no longer turn into layout tables when the editor data is loaded again with config.table.tableLayout.preferredExternalTableType set to 'layout'. The content-table class on the <figure> that wraps a table now takes precedence over this setting, so content tables keep their captions, header rows and footer rows.

  • track-changes: Splitting a suggestion that was split before no longer causes an error in real-time collaboration when the other part of the original suggestion was already accepted or rejected.

  • ui: The sticky toolbar is now positioned correctly when an ancestor of the editor becomes the containing block of fixed elements, for example, because it has a CSS transform, a filter, layout containment, or a will-change declaration. Before, the toolbar was placed at the wrong offset and scrolled away with the content in such a layout. Closes #18328.

  • ui: Every aria-live announcement now stays in its region for 5 seconds before it is removed. Previously, a single timer removed the oldest announcement every 5 seconds, so an announcement could be removed right after it was added, before a screen reader read it. The editor no longer runs this timer when there is nothing to remove, so an idle editor does not wake up the browser every 5 seconds.

  • ui: Balloons, for example the link toolbar, now hide when the editor is hidden with content-visibility: hidden, as they already did for display: none. Before, they stayed on screen over the hidden editor. Closes #20276.

Other changes

  • ui, widget: The focus styles of the accessibility help dialog and of focused widgets read the semantic focus roles (--ck-interactive-focus-ring and --ck-interactive-focus-shadow) instead of the foundation focus tokens, so overriding these roles also changes them. The “Powered by” and evaluation badges placed on the editor border take the width and style of their border from --ck-interactive-focus-ring. The default look does not change.

  • ai: The Editing Toolkit now highlights a proposed change that only inserts content together with a few surrounding words, so it is easier to spot in the document. Undoing and redoing an accepted proposed change now keeps its state in line with the document.

  • ai: The focus styles of the AI form and the AI review check list read the semantic focus roles (--ck-interactive-focus-ring and --ck-interactive-focus-shadow) instead of the foundation focus tokens, so overriding these roles also changes them. Overriding the legacy --ck-focus-outer-shadow also changes their focus shadow. The default look does not change.

  • ai: The active change in AI Review and AI Chat now has a stronger fill, both in the content and on its card, so it is easier to spot.

  • ai: The default value of the config.ai.review.autoAdvanceDelay and config.ai.chat.autoAdvanceDelay configuration options and the autoAdvanceDelay option of the Editing Toolkit createController() method changed from 600 to 400 milliseconds.

  • ai: Improved how AI Chat shows and applies proposed changes.

    Changes inside nested content, such as block quotes or layout tables, are now shown as separate, smaller changes. Applying the changes is faster, and outdated changes are detected more reliably.

  • engine: The selection observer no longer runs a timer for the whole editor lifetime, so an idle editor does not wake up the browser every second. The protection against an infinite selection loop works as before.

  • merge-fields: The status in the merge field balloon (for example, “Value not available.”) has a transparent background and the UI font size (14px), without the extra line height. The font size can be set with the new --ck-merge-fields-form-status-font-size CSS custom property. The vertical padding of merge fields can also be set with --ck-merge-fields-padding-block, the new name of --ck-merge-fields-paddings-vertical, which keeps working.

  • real-time-collaboration: The presence list now shows “(you)” next to the name of the local user in the avatar tooltip and in the dropdown with all connected users. In the dropdown, the local user is also separated from the other users with a divider.

  • real-time-collaboration: Improved the real-time collaboration performance by fetching the initial data with referenced users, and the latest revision in parallel, which makes the editor start faster.

  • track-changes: In the track changes mode, changing the height in the table properties or table cell properties form now creates a separate format suggestion. The height is no longer a part of the “change table properties” or “change table cell properties” suggestion, so discarding that suggestion does not change the height. Suggestions created in earlier versions work as before.

  • ui: The switch button background now reads --ck-transition-duration-surface, and the label of a selected list item reads --ck-color-interactive-primary-text, so overriding these roles also changes these components. The default look does not change.

  • utils: Balloons, tooltips, and the block toolbar button are now placed next to what they point at when the editor or its overlay container (config.ui.overlayContainer) is slotted into a position: fixed element of a shadow tree, such as a modal <dialog>, a popover, or a fixed panel of a web component, also when a display: contents element sits between the slot and that element.

CKEditor 5 v49.1.0 release

We are happy to announce the release of CKEditor 5 v49.1.0.

Release highlights

⭐ Editing Toolkit

We are releasing Editing Toolkit, a new set of APIs for developers who build their own editing experiences.

Editing Toolkit grew out of our work on CKEditor AI, our plug-and-play AI offering. Turn it on, and you have an editor with AI that keeps humans in the loop.

But some teams want to build their own AI integration rather than use a ready-made one. Editing Toolkit gives them the building blocks to work with content in the editor. It consists of two parts:

  • Compare: an editor API that lets you compare two versions of HTML content, then apply or suggest individual changes. You can also preview the changes before they land in the content.
  • Coauthor: think of it as MCP for CKEditor. It lets server-side agents draft content, suggest edits, or leave comments in the editor: through ChatGPT or Claude, or as background jobs. Coauthor is currently in early access, and if you would like to test it, let us know.

Editing Toolkit is not limited to AI. You can also use it in strictly deterministic scenarios like manipulating content with code or comparing it with externally generated HTML, for example, HTML converted from an updated Word file.

⭐ CKEditor AI: custom skills for your features

CKEditor AI can now work with the content of your plugins, such as a custom widget or a new HTML element. Upload a custom skill that describes the markup and rules of your feature, then register the plugin with AIEditorConfig#add(). The AI agent then writes and keeps your custom content in the shape your editor accepts, and its proposed changes follow your feature’s rules.

See Registering custom features for details.

⭐ CKEditor AI: hooks for your agent and policies

On-premises deployments of CKEditor AI can call a service you host before the agent answers an AI Chat message. With hooks, your service can check each message against your policies, answer from your systems, or pass context and instructions to the CKEditor AI agent. Use them when you already have an AI platform with access to your data and want it to take part in the chat.

⭐ Editor bundle for Cloud Services with your AI coding agent

Coauthor runs your editor on the server, so it needs an editor bundle uploaded to Cloud Services. It joins the other features that require the editor bundle. The new ckeditor-bundle skill lets your AI coding agent set it up. It moves the editor into one module that both your application and the bundle use, adds the bundle build for your bundler, checks the bundle with test data, and adds the upload scripts for your CI.

Two new guides come with the skill. Editor bundling with Vite shows how to share one editor definition between your application and the bundle. Testing the editor bundle with test data explains how Cloud Services checks the bundle and how to fix a failed upload.

Other improvements and fixes

  • New theme improvements and fixes: v49.0.0 introduced a refreshed default theme built on three layers of design tokens (foundation scales, semantic roles, and per-component tokens), with legacy variable names kept as aliases. Some aliases were silently ignored even though the migration guide said they worked. They work again, so overrides of focus borders and the shadows of dropdowns, balloons, menus, and comment and suggestion cards apply with no changes on your side. Additionally, more of the UI moved from hard-coded values to tokens (#20255, #20257, #20259): button colors in the resting, hover, and active states, toolbar button borders and radius, form and dialog headers, the insert table grid, and find and replace results. Every new token defaults to the value used today, so the default theme looks the same. See the full token list in the theme customization guide.
  • Shadow DOM support for more features: the CKBox file manager and image editor, the “Edit source” dialog of enhanced source editing, and footnotes work correctly when the editor renders in a shadow root. Plugin authors get two helpers for events that do not cross a shadow boundary, such as scroll: listenToEventRoots() listens on the document and on every shadow root the editor lives in, and DomTargetsListener listens on a set of targets you can refresh, like a balloon’s positioning target. See the Shadow DOM deep dive.
  • More reliable balloons and toolbars: tooltips, the link balloon, and the mention list appear in the right place again on scrolled pages when <body> or the overlay container is positioned (a v49.0.0 regression, #20251).
  • Content loading: some browsers started parsing <?target data?> markup as processing instruction nodes instead of comments, which made the editor throw while loading or pasting such content. The editor ignores these nodes the same way it ignores comments, and data processors have a new skipProcessingInstructions flag for integrations that need to keep them.
  • Email export fixes: Email export converts hsl() and hsla() colors to rgb() and rgba() through the new transformEmailStylesColors() transformation, since many email clients, including Outlook, do not support HSL. The default font and table palettes also no longer trigger warnings in the email configuration logger.

MINOR BREAKING CHANGES

  • collaboration-core, comments: Focused comments and suggestions are now marked with a focus ring instead of a background color. The --ck-comment-focus-background-color and --ck-suggestion-box-focus-background-color CSS variables have been removed. To style the focus ring, use the new --ck-comment-focus-border-color, --ck-comment-focus-shadow, --ck-suggestion-box-focus-border-color, and --ck-suggestion-box-focus-shadow CSS variables.

  • ai: The AIEditorConfig type describing the editor configuration snapshot has been renamed to AIEditorConfigSnapshot. The AIEditorConfig name now refers to the new plugin that produces the snapshot and registers custom features. If you used the AIEditorConfig type (for example, to type DocumentCompareSnapshot#editorConfig or AIEditingDocumentData#editorConfig), replace it with AIEditorConfigSnapshot.

  • comments: The default CommentThreadView no longer renders the comment thread header, and the BaseCommentThreadView#commentThreadHeaderView property is deprecated. Customizations of the header, such as buttons added to it or styles for the .ck-thread__header and .ck-context CSS classes, no longer apply. The reopen button is now available in the first comment as CommentThreadView#reopenButton. If you need the header, add commentThreadHeaderView to the template of your custom comment thread view.

  • comments: The --ck-comment-input-padding CSS variable now sets only the padding of the comment field container, not the padding inside the comment field. If you used it to change the padding inside the comment field, use the new --ck-comment-input-field-padding CSS variable instead.

  • revision-history: Some Revision History CSS variables now style different parts of the refreshed sidebar:

    • --ck-revision-history-sidebar-revision-vertical-spacing sets only the spacing between revisions. Use the new --ck-revision-history-sidebar-time-period-vertical-spacing for the spacing between the time period groups.
    • --ck-revision-history-revision-border-color sets the whole card border. --ck-revision-history-revision-selected-border-color and --ck-revision-history-revision-highlighted-border-color set the vertical line that marks the selected and the compared revisions.
    • The time period labels no longer use the inverse text color. If you changed their background with --ck-revision-history-sidebar-period-background-color, set their text color with the new --ck-revision-history-sidebar-period-text-color.
    • --ck-revision-history-revision-highlighted-hover-background-color no longer has an effect, because the actions button of a compared revision uses the default button hover background.
  • utils: The DOM event passed to the listenToShadowRoots() callback is now typed after the event option, the same way as in DomEmitter#listenTo(), instead of any. A TypeScript callback that declares a narrower DOM event type than the one of the event it listens to no longer compiles. Declare the matching DOM event type, or narrow it inside the callback.

Features

  • document-outline, footnotes, merge-fields, pagination, real-time-collaboration, revision-history, slash-command, source-editing-enhanced, template, uploadcare: The document outline, table of contents, footnotes, revision history, merge fields, Uploadcare, pagination, presence list, templates, and slash command features expose new CSS custom properties for their colors, sizes, and spacing, and several of their defaults now follow the semantic theme roles. Every new property defaults to the current value, so the default theme renders unchanged.

    • Document outline: the active item follows the semantic accent text color (--ck-color-text-accent), and the hover text color has a new name (--ck-document-outline-item-hover-text-color). The legacy --ck-document-outline-item-hover-state-color keeps working.
    • Table of contents and footnotes: the widget label text color (--ck-table-of-contents-label-text-color, --ck-footnotes-widget-label-text-color). The label backgrounds follow the semantic secondary text color, and the table of contents background follows the subtle surface (--ck-color-surface-subtle).
    • Revision history: the selected revision border follows the semantic accent border color (--ck-color-border-accent), and the actions button of the selected revision has its own text color at rest and on hover (--ck-revision-history-revision-selected-actions-text-color, --ck-revision-history-revision-selected-actions-hover-text-color).
    • Merge fields: component-first names for the colors (--ck-merge-fields-outline-color, --ck-merge-fields-value-outline-color, --ck-merge-fields-with-warning-outline-color, --ck-merge-fields-block-outline-color, --ck-merge-fields-affix-text-color, --ck-merge-fields-form-error-background-color), the label and preview badge backgrounds (--ck-merge-fields-label-background-color, --ck-merge-fields-preview-badge-background-color), and the affix font (--ck-merge-fields-affix-font-family). The legacy --ck-color-merge-fields-* names keep working.
    • Uploadcare: the widget font size, font family, radius, padding, text and border colors (--ck-uploadcare-font-size, --ck-uploadcare-font-family, --ck-uploadcare-border-radius, --ck-uploadcare-padding, --ck-uploadcare-text-color, --ck-uploadcare-secondary-text-color, --ck-uploadcare-muted-text-color, --ck-uploadcare-border-color), and suffix-convention names for the form colors (--ck-uploadcare-form-image-background-color, --ck-uploadcare-form-error-icon-color, --ck-uploadcare-form-skeleton-background-color). The legacy --ck-uploadcare-color-* names keep working. The widget font now follows the editor UI font (--ck-font-family), so overriding the editor font also changes the Uploadcare widget.
    • Pagination: the page number label text color (--ck-pagination-label-text-color).
    • Presence list: the avatar border and users counter colors (--ck-presence-list-avatar-border-color, --ck-presence-list-counter-border-color, --ck-presence-list-counter-background-color, --ck-presence-list-counter-text-color) can now be set on :root (or :host in a shadow root). The avatar border follows the subtle surface. These properties are now override points only: because the counter colors depend on the avatar color of each user, their defaults are applied where they are used, so reading them with var() in your own CSS returns nothing unless you set them.
    • Templates: the description text color (--ck-template-description-text-color). The template title and description now follow the button text color.
    • Slash command: the icon chip text color, background, and radius (--ck-slash-command-icon-text-color, --ck-slash-command-icon-background-color, --ck-slash-command-icon-border-radius).
  • basic-styles, block-quote, code-block, horizontal-line, image, list, mention, page-break, table: The block quote border, code block, inline code, horizontal line, page break, table borders and header, and to-do list checkmarks in the content expose --ck-content-* CSS custom properties, so the content rendered inside .ck-content can be restyled on :root (or :host in a shadow root) without overriding element rules. Every new property defaults to the current value, so the default theme renders unchanged. The table caption, image caption, and mention color properties were renamed to follow the current naming convention (for example --ck-content-table-caption-background-color), and the former --ck-content-color-* names keep working as fallbacks on :root (or :host in a shadow root) and in scoped selectors. Closes #20253.

  • ckbox, fullscreen, html-embed, html-support, media-embed, style, ui, widget: New semantic color roles cover design intents that had no shared token, so they can be restyled once on :root (or :host in a shadow root) instead of per component. The components that read the new roles keep their current colors, so the default theme renders unchanged. Closes #20259.

    • --ck-color-surface-subtle: a muted panel or placeholder surface. The fullscreen layout, HTML embed, HTML object embed, media embed placeholder, and the disabled style in the style grid now read it instead of the foundation --ck-color-base-foreground.
    • --ck-color-border-subtle: a light border. The blurred widget outline now reads it.
    • --ck-color-surface-overlay: the scrim behind modal dialogs, read by --ck-dialog-overlay-background-color.
    • --ck-color-surface-skeleton and --ck-color-surface-skeleton-highlight: the loading shimmer, read by the CKBox image processing placeholder.
    • --ck-color-interactive-disabled-surface: the background of a disabled input.
    • --ck-color-text-placeholder: the editing area placeholder text, read through --ck-color-engine-placeholder-text.
    • --ck-color-feedback-error-surface, --ck-color-feedback-success-surface, and --ck-color-feedback-warning-surface: light, translucent backgrounds for messages and fields in a feedback state, available for custom components (no built-in component reads them yet).

    The focus border color (--ck-focus-border-color) now derives from --ck-color-base-focus, so changing the foundation focus color also moves the focus border. The labeled field and labeled input error text now read --ck-color-text-error. Both resolve to the same values as before.

  • code-block, find-and-replace, heading, style, table, ui: Toolbars, form and dialog headers, dropdowns, split buttons, lists, tab buttons, the insert table grid, the heading dropdown, find and replace, code blocks, and the style grid expose new CSS custom properties that can be restyled on :root (or :host in a shadow root). Every new property defaults to the current value, so the default theme renders unchanged. Closes #20257.

    • Toolbar: the border and radius of the toolbar’s own buttons in every toolbar (--ck-toolbar-button-border, --ck-toolbar-button-border-radius), including compact toolbars, toolbars in dropdown panels, and open dropdown and split buttons in toolbars, and the separator width (--ck-toolbar-separator-width). The button tokens do not reach lists in dropdown panels.
    • Form header and dialog header: the background and the text color of the label, the header icon, and the header buttons, such as the dialog close button (--ck-form-header-background, --ck-form-header-text-color, --ck-dialog-header-background).
    • Dropdown: the gap between the label and the arrow (--ck-dropdown-arrow-gap). The open dropdown button radius (--ck-dropdown-panel-uniform-button-border-radius) now defaults to --ck-button-border-radius.
    • Split button and list: the separator width and height (--ck-split-button-separator-width, --ck-list-separator-height).
    • List item button: the text color and hover background of a toggleable item in the “on” state (--ck-list-item-button-on-text-color, --ck-list-item-button-on-hover-background).
    • Tab button: the focus border color and the label color of the active tab (--ck-tab-button-focus-border-color, --ck-tab-button-active-text-color).
    • Insert table grid: the cell border, and the background and border of selected cells and of the cell under the pointer (--ck-insert-table-dropdown-box-border-color, --ck-insert-table-dropdown-box-on-background, --ck-insert-table-dropdown-box-on-border-color, --ck-insert-table-dropdown-box-hover-background, --ck-insert-table-dropdown-box-hover-border-color).
    • Heading dropdown: the label width and the list item minimum width (--ck-heading-dropdown-label-width, --ck-heading-dropdown-list-item-min-width).
    • Find and replace: the result and selected result background and text color (--ck-find-result-background, --ck-find-result-text-color, --ck-find-result-selected-background, --ck-find-result-selected-text-color). The legacy --ck-color-find-result-selected keeps working.
    • Code block: the language label background and text color (--ck-code-block-label-background, --ck-code-block-label-text-color). The legacy --ck-color-code-block-label-background keeps working.
    • Style grid: the border of the selected style and of the selected style under the pointer (--ck-style-panel-button-on-border-color, --ck-style-panel-button-on-hover-border-color).
  • ai, collaboration-core, comments, real-time-collaboration: The user marker tooltip text color and the background around the comment reply field are now themable through --ck-user-marker-tooltip-text-color and --ck-comment-input-container-background-color, and the border of format suggestions in the sidebar follows the semantic --ck-color-border-accent role. The AI tabs overlay follows the dialog layer (--ck-layer-dialog), so it stays right below dialogs when that layer changes.

  • collaboration-core, comments, revision-history: The suggestion and comment markers, the annotation type bar, pills, user avatars, and the confirmation view expose new CSS custom properties for their line width and style, colors, and sizes. Every new property defaults to the current value, so the default theme renders unchanged.

    • Suggestion markers: the line width (--ck-suggestion-marker-border-width, also used by the added and removed roots in the revision viewer), the line style per change type (--ck-suggestion-marker-insertion-border-style, --ck-suggestion-marker-deletion-border-style, --ck-suggestion-marker-format-border-style), the deletion strikethrough thickness (--ck-suggestion-marker-deletion-stroke-thickness), and the gap color next to the block format bar (--ck-suggestion-marker-format-gap-color, --ck-suggestion-marker-format-code-gap-color).
    • Comment markers: the line width and style (--ck-comment-marker-border-width, --ck-comment-marker-border-style), and the border color of text and widget markers and of the active marker (--ck-comment-marker-border-color, --ck-comment-marker-active-border-color). The active border color falls back to the resting one on text markers.
    • Annotation type bar: the line style (--ck-annotation-type-border-style).
    • Color swatch in suggestion descriptions: the size and ring color (--ck-suggestion-color-swatch-size, --ck-suggestion-color-swatch-border-color).
    • Pill: the text color (--ck-pill-text-color). The legacy --ck-pill-color keeps working. The resting pill background now reads the base hover color directly, so overriding the semantic --ck-color-interactive-hover-surface no longer recolors pills. To restyle them, use --ck-pill-background.
    • User avatar: the background behind avatar images (--ck-user-avatar-image-background-color).
    • Confirmation view: the background (--ck-confirm-view-background-color). The legacy --ck-color-light-red keeps working.
  • style, table, ui: Two new semantic color roles cover accent-colored parts drawn on the canvas: --ck-color-text-accent for text and icons, and --ck-color-border-accent for borders and thin lines. They are separate from --ck-color-interactive-primary-surface, which is a fill. A dark theme can now give these parts a lighter accent that reads well on a dark canvas, while the filled action buttons keep the primary surface color. Both roles default to --ck-color-base-active, so the default theme renders unchanged. Closes #20261.

    The outline button label and border (--ck-button-outline-color) and the active tab icon and indicator bar (--ck-tab-button-active-icon-color) now read --ck-color-text-accent. The border of a toggled-on surface button (--ck-button-surface-border-color), the border of the selected style in the style panel, and the hovered table column resizer read --ck-color-border-accent. --ck-color-interactive-selected-text now follows --ck-color-text-accent by default.

  • ui, utils: Introduced helpers for listening to DOM events on both the document and the shadow roots a node lives in. Events that are not composed, such as scroll, never cross a shadow boundary, so a listener on document alone misses them.

    • The new listenToEventRoots() helper listens to the document and to every shadow root tracked by a ShadowRootRegistry, and follows the registry as these roots come and go.
    • The new DomTargetsListener class listens to a set of DOM event targets that can be updated with its refresh() method. Together with the new getEventRoots() helper, it covers particular elements, such as the positioning target of a balloon.
    • ShadowRootRegistry now also reports the documents of its registered nodes through getEventRoots() and fires the changeEventRoots event when they change.

    The balloon panel, sticky panel, tooltip manager, and block toolbar now use these helpers instead of their own listener syncing code.

  • collaboration-core, comments: The comments and annotations UI now follows the shared theme tokens, and its buttons, avatars, cards, focus shadows, commented excerpt, and narrow sidebar counter expose new CSS custom properties. Every new property defaults to the current value, so the default theme renders unchanged, with one exception: while its menu is open, the comment options button now shows the regular “on” button colors, like other toggled buttons in the editor.

    • Buttons in annotations and below the comment field now follow the shared button tokens, for example --ck-button-default-text-color and its hover state, and --ck-button-action-text-color for the Reply button. The legacy --ck-annotation-icon-color keeps setting the default color of the buttons in annotations (not the buttons below the comment field or in the comment menu), and it wins over --ck-button-default-text-color there.
    • Annotation avatars: the size (--ck-annotation-user-avatar-size).
    • Annotation card: the border (--ck-annotation-wrapper-border), and the border and shadow of the active card (--ck-annotation-wrapper-active-border, --ck-annotation-wrapper-active-shadow). The active card border falls back to the resting one. The card background now defaults to the semantic container surface.
    • Comment threads and suggestions: the focus shadow (--ck-thread-focus-shadow, --ck-suggestion-wrapper-focus-shadow).
    • Commented excerpt: the text color (--ck-comment-context-text-color).
    • Narrow sidebar counter: the badge text color (--ck-annotation-counter-badge-text-color).
    • The documented --ck-comment-count-color CSS custom property now takes effect.
  • editor-classic, ui: The background of the editing area can be themed on :root (or :host in a shadow root) with the new --ck-editor-editable-background CSS custom property. It reaches the main editing roots of every editor type, not nested editables or secondary editors, and is read through the background shorthand, so it also accepts gradients and images.

  • table, ui: The resting shadow of the classic editor toolbar area, the shadow of the selected insert table grid cell under the pointer, and the inner start border width of the split button arrow can be themed on :root (or :host in a shadow root) with the new --ck-sticky-panel-content-shadow, --ck-insert-table-dropdown-box-hover-shadow, and --ck-split-button-arrow-border-inline-start-width CSS custom properties. Every new property defaults to the current look.

  • ai: Custom editor plugins can now be registered with the AI agent using the new AIEditorConfig plugin (AIEditorConfig#add() method), so that the agent can produce and preserve their content.

  • ai: Introduced the Editing Toolkit: APIs and standalone UI components to compare two versions of a document, present them through an interactive UI, and apply the differences to the editor directly or as Track Changes suggestions.

  • ai: AI Chat now scrolls the feed to the next pending change after a proposed change is accepted, suggested, or rejected.

  • ai: The editor configuration that AI features send to the AI service now reports whether the restricted editing mode is enabled, along with the commands allowed in it.

  • ai: After deciding on a change in AI Chat, the preview balloon automatically shows the next pending one or closes if all changes have already been decided on.

  • ai: The AI features now follow the semantic theme roles, so a theme that restyles the editor through :root tokens (for example the primary, selected, and feedback colors, the text and border roles, and the subtle surface) also restyles the AI UI. The AI toggle and the Quick Actions toolbar buttons also follow the shared button state tokens (--ck-button-on-background-color, --ck-button-on-hover-background-color, --ck-button-on-active-background-color, --ck-button-on-disabled-background-color, --ck-button-on-text-color, --ck-button-default-hover-background-color). The default theme renders unchanged.

    The AI tabs panel background (--ck-tabs-panels-container-background) now accepts gradients. New override points: the capability icon background in the AI chat feed (--ck-ai-chat-feed-interaction-header-capabilities-icon-background-color), the AI chat disclaimer divider color (--ck-ai-chat-disclaimer-divider-color), and the inset of the add context button (--ck-ai-chat-context-controls-add-context-button-inset-block-end). The active AI tab background (--ck-ai-tab-active-surface-color) now takes effect. The AI borders and dividers follow the border width roles (--ck-border-width-surface, --ck-border-width-divider), and the dimmed content of resolved suggestions has its own opacity (--ck-ai-suggestion-resolved-opacity).

  • ai: AI Review now shows a summary of the accepted and dismissed changes once the last change is decided, and scrolls the list back to the top to show it.

  • ai: The AI features have their own theme tokens for more interactive states. The default look stays the same. New tokens:

    • Chat history items: --ck-ai-chat-history-item-hover-background-color, --ck-ai-chat-history-item-active-background-color, --ck-ai-chat-history-item-edit-background-color.
    • AI Review check tiles: --ck-ai-review-check-list-item-hover-shadow, --ck-ai-review-check-list-item-selected-shadow, --ck-ai-review-check-list-item-selected-icon-color.
    • AI Translate results: --ck-ai-translate-check-run-result-hover-shadow, --ck-ai-translate-check-run-result-active-border-color, --ck-ai-translate-check-run-result-active-shadow.
    • Web source chips: --ck-ai-chat-web-source-hover-background-color, --ck-ai-chat-web-source-focus-shadow.
    • Chat shortcuts: --ck-ai-chat-shortcuts-shortcut-icon-hover-color, --ck-ai-chat-shortcuts-shortcut-active-background-color.
    • Maximized AI tabs resize button: --ck-ai-tabs-resize-button-on-background-color.

    The AI Review tile shadow now follows --ck-shadow-surface-raised, and the chat prompt highlight ends on the input focus style.

  • ai: After making a decision about a proposed change in AI Chat and the Editing Toolkit, or about a change in AI Review, the decided change now shows the “Accepted” or “Rejected” label for a moment before the view moves on to the next one. You can change how long this pause lasts, or turn it off with 0, with the config.ai.review.autoAdvanceDelay and config.ai.chat.autoAdvanceDelay configuration options and the autoAdvanceDelay option of the Editing Toolkit createController() method.

  • ckbox: The CKBox file manager and image editor dialogs now work when the editor is rendered in a Shadow DOM.

  • comments: You can now set the text color of annotation content, for example suggestion descriptions, using the new --ck-annotation-content-font-color CSS custom property. By default, it follows the --ck-comment-content-font-color value.

  • email: Introduced the transformEmailStylesColors() transformation that converts hsl() and hsla() colors to rgb() and rgba() in the exported email content, as many email clients (for example, Outlook) do not support the HSL notation.

    Since hsl() colors are now safe to use in emails, the email configuration logger no longer reports the email-configuration-unsupported-color-value and email-configuration-unsupported-color-format warnings for hsl() colors and the hsl color picker format, including the default font and table color palettes. These warnings are still reported for hsla() colors.

  • emoji: Introduced the config.emoji.definitions option that allows passing the emoji database directly to the editor instead of downloading it from a URL. See ckeditor/ckeditor5#18116.

    Use it to bundle the database with your application, for example, when the Content Security Policy of the page does not allow downloading it. When the option is set, the config.emoji.definitionsUrl and config.emoji.version options are ignored. The EmojiCdnResource type was renamed to EmojiDefinition. The old name is still available but deprecated.

  • ui: Dialogs can now use the new --ck-width-dialog-xs, --ck-width-dialog-sm, and --ck-width-dialog-xl CSS variables, which set their width to the xs, sm, and 2xl steps of the width scale and cap it at 90vw.

  • ui: The spread of the focus shadow can now be changed with the new --ck-focus-shadow-spread CSS variable, which --ck-focus-shadow-geometry is built from.

  • ui: The input field now has a small variant that you can enable with the ck-input_small CSS class. You can customize its size with the new --ck-input-min-height-small and --ck-input-padding-small CSS variables.

  • ui: Buttons, list item buttons, split buttons, tab buttons, and the menu bar expose their interactive states (hover, active, open, and toggled on) as CSS custom properties that can be restyled on :root (or :host in a shadow root) without class-level overrides. Every new property defaults to the current value, so the default theme renders unchanged. Closes #20255.

    • Button: the resting, hover, and active label and icon color (--ck-button-default-text-color, --ck-button-default-hover-text-color, --ck-button-default-active-text-color; hover and active fall back to the resting color), and the border split into --ck-button-border-width, --ck-button-border-style, and --ck-button-border-color.
    • Surface and outline button variants: the --ck-button-surface-* and --ck-button-outline-* tokens are declared on :root instead of on the variant button, plus the new --ck-button-outline-border-color.
    • List item button: the resting and hover label color (--ck-list-item-button-text-color, --ck-list-item-button-hover-text-color) and the background of an open item, for example an open menu (--ck-list-item-button-open-background).
    • Split button: the hover background and border color, the focus border color, and the arrow border width (--ck-split-button-hover-background, --ck-split-button-hover-border-color, --ck-split-button-focus-border-color, --ck-split-button-arrow-border-block-width).
    • Tab button: the hover background of an inactive tab (--ck-tab-button-hover-background).
    • Menu bar: the background (--ck-menu-bar-background).
  • ui: A new --ck-shadow-surface-raised semantic role covers the shadow of in-flow surfaces that lift on hover, such as cards. It defaults to --ck-shadow-lg, so the default theme renders unchanged.

  • ui: Open list item buttons, for example open menus in the menu bar and in dropdown menus, can be fully themed from :root with the new --ck-list-item-button-open-hover-background and --ck-list-item-button-open-text-color CSS custom properties, next to --ck-list-item-button-open-background. The open hover background falls back to the open background, so two properties style the open state with and without the pointer.

Bug fixes

  • editor-classic, fullscreen, link, special-characters, style, table, ui: Theme token overrides now reach a few UI parts that ignored them:

    • The classic editor editing area border and the fullscreen page follow --ck-editor-frame-border-color and --ck-editor-editable-background. A theme that sets --ck-color-border-container or --ck-color-surface-canvas to a custom value also changes them.
    • The style grid buttons follow --ck-color-surface-canvas on hover and press, and their backgrounds can be set with --ck-style-panel-button-hover-background, --ck-style-panel-button-active-background, and --ck-style-panel-button-disabled-background.
    • The table properties error balloon follows the error and inverse text roles: --ck-table-properties-error-background and --ck-table-properties-error-text-color.
    • Declared tokens with the current defaults for colors that had only a raw fallback: the color grid check icon (--ck-color-grid-check-icon-color), the blurred editing area selection (--ck-editor-editable-blurred-selection-background), the accessibility help dialog (--ck-accessibility-help-dialog-code-background-color, --ck-accessibility-help-dialog-kbd-shadow-color, and --ck-accessibility-help-dialog-border-color, which falls back to --ck-color-divider), and the linked image badge (--ck-link-image-indicator-background-color).
  • engine, html-support, paste-from-office, utils: Processing instructions in the input data no longer cause an error during conversion.

    Browsers have started parsing <?target data?> markup in HTML into processing instruction nodes rather than comments. Such nodes are now ignored by default, consistently with how comments have always been handled. Data processors expose a new skipProcessingInstructions flag for integrations that need to preserve them.

  • ckbox, emoji, mention, ui: Dialogs, and the mention list, the emoji picker, and CKBox shown above them, now follow the --ck-layer-dialog CSS custom property instead of reading the legacy --ck-z-dialog directly, so raising the dialog layer moves them together. Set --ck-z-dialog or --ck-layer-dialog on :root (or :host in a shadow root), or override --ck-layer-dialog on a narrower selector: a scoped override of the legacy --ck-z-dialog no longer applies. The selected item in lists now reads the --ck-color-interactive-primary-surface fill role instead of a text role. It looks the same in the default theme, but now follows the primary color (--ck-color-base-action) rather than the accent text color, so lightening --ck-color-text-accent for contrast no longer lightens its background.

  • revision-history, source-editing-enhanced, uploadcare: The revision history sidebar header lines up with the editor toolbar again, and the Uploadcare buttons have the same height as the other editor buttons. They, and the enhanced source editing dialog, now read the editor control height (--ck-size-control-min-height) instead of a legacy size that no longer matched it.

  • bookmark, html-support, ui: The --ck-font-weight-ui-default CSS custom property now sets the font weight of regular UI text. The UI reset, the bookmark toolbar preview, and the General HTML Support object widget label read it instead of a hardcoded normal weight.

  • ai, comments: Restored support for the legacy --ck-color-annotation-wrapper-drop-shadow CSS variable. Comment and suggestion cards use it for their shadow again. Focused inline comment threads use --ck-drop-shadow for their shadow again.

    The --ck-tabs-border-radius CSS variable of the AI tabs now also works when set on a parent element.

  • source-editing, ui: Restored support for the legacy --ck-color-focus-border and --ck-drop-shadow CSS variables. Buttons, inputs, the editing area, and menu bar items use --ck-color-focus-border for their focus border again. Dropdowns, balloons, and menus use --ck-drop-shadow for their shadow again.

    Overriding --ck-interactive-focus-ring now also changes the focus border of the source editing area. The pulse around the buttons that insert a paragraph next to a widget now matches the refreshed focus color.

  • collaboration-core, track-changes: The “AI-generated” pill in the suggestion annotations now has more space above it.

  • ai, revision-history: The AI review check list item descriptions and the revision change author follow the --ck-font-weight-ui-default CSS custom property instead of a hardcoded regular weight.

  • ai: The AI Review navigation panel is now hidden when the change it shows becomes outdated, for example, after another user removes the content the change was suggested for.

  • ai: The review results navigation bar’s width is now aligned with the width of the text inside the editor.

  • ai: The AI Translate languages list now leaves space below the last language, matching the AI Review list.

  • ai: Fixed several styling issues in the AI UI:

    • The AI Quick Actions search field no longer overflows its panel with a larger control font size.
    • The AI error notification dismiss button and the AI Review info button have the intended small size again.
    • The add context button in the AI chat prompt is aligned with the input at any control height.
    • The toolbar buttons of an AI suggestion show their pressed state, and disabled toolbar buttons no longer get the hover color.
    • The error message in the AI balloon follows the theme radius instead of a fixed 4px.
  • ai: Items in the AI Quick Actions dropdown and its sub-menus now show the focus ring when focused with the keyboard.

  • ai: The icons of the AI header buttons follow --ck-form-header-text-color when it is set on :root, so they match the header label. --ck-ai-header-icon-color still overrides them.

  • ai: The buttons at the bottom of the AI Chat and AI Quick Actions balloons no longer stick out of the balloon when the editor is narrow. When the buttons do not fit, you can scroll them horizontally instead.

  • bookmark: The URL preview in the bookmark toolbar is no longer oversized. It now uses the regular UI control font size instead of inheriting the larger page font size.

  • clipboard: Links copied using the “Copy” option in the iOS Safari share sheet can now be pasted into the editor. When the clipboard provides neither HTML nor plain text, the editor now uses the text/uri-list data and inserts the links as plain text. Closes #2074.

    Thanks to @dtdesign.

  • collaboration-core: When the annotation type bar is turned on (--ck-annotation-type-border-width), the thread header (in thread views that render it) now shows the insertion, deletion, or format color of a suggestion, like the rest of the thread, instead of the comment color. The bar of a block format suggestion now shows when the collaboration content styles are loaded without the editor UI styles.

  • comments: The commented text quoted in the first comment of a comment thread now fills the available width of the annotations sidebar and stays on a single line in narrow sidebars.

  • comments: The initials in the default avatars of comments, suggestions, and the comment reply field now fit inside the avatar, including wide initials such as “WW”.

  • comments: Replies and the reply field in suggestions displayed inline or in the narrow sidebar now look the same as in comment threads.

  • emoji: Selecting an emoji category that does not contain any emoji in the emoji picker no longer throws an error. The picker now displays a message that the category is empty.

  • export-inline-styles: Exporting content with inline styles no longer loses parts of the border shorthand defined with CSS variables, for example, the border style of table cells from the default content styles. CSS variables are now resolved before shorthand properties are processed.

  • find-and-replace: The results counter in the find and replace form no longer covers the end of the search text, and it uses the search field font size instead of the larger base UI font size. The counter font size can be themed on :root (or :host in a shadow root) with the new --ck-find-and-replace-form-results-counter-font-size CSS custom property.

  • footnotes: Footnote content no longer wraps below the backlink when the editor is rendered inside a shadow root or on a page without a global box-sizing: border-box reset.

  • link: Choosing a link from a links provider list in the link form (for example, a bookmark) or going back from that list no longer displays the balloon toolbar on top of the link form. The link form with the chosen link filled in is now displayed as expected.

  • real-time-collaboration: Fixed handling of revision updates made by other users while the revision history is loading.

    Such updates could previously throw an error, be dropped, duplicate a revision, or leave it without its authors. They are now applied once the initial revisions and the users they reference are loaded.

  • real-time-collaboration: Comment changes made by other users while comments are loading are no longer lost.

    New comment threads, replies, and other comment changes received while the initial comments were loading (also after a reconnection) could previously be dropped or throw an error. They are now applied once the initial comments and the users they reference are loaded.

  • real-time-collaboration: Suggestion attribute changes made by other users while suggestions are loading are no longer lost. They are now applied once the initial suggestions are loaded.

  • revision-history: The Revision History sidebar now follows the direction of the editor UI language, including right-to-left languages.

  • source-editing-enhanced: The code editor in the “Edit source” dialog now receives its styles when the editor UI is rendered inside a shadow root (for example, when config.ui.overlayContainer points to a shadow root). Previously, the code editor styles were added to the main document instead, which left the code editor unstyled.

  • template: Template list buttons keep their rounded corners when --ck-border-radius-uniform is set to initial, and no longer follow a custom uniform radius. Their radius is controlled by the new --ck-template-list-item-border-radius CSS custom property, which defaults to --ck-border-radius-surface.

  • ui: Fixed menu bar items sticking out of their menu panels on narrow viewports, such as most mobile phones. The larger default font size of the refreshed theme made the minimum width of the items exceed the maximum width of the panel.

    The --ck-menu-bar-menu-item-min-width CSS variable now sets the minimum width of the whole menu panel and is capped by its maximum width. You can customize the maximum width with the new --ck-menu-bar-panel-max-width CSS variable (75vw by default).

  • ui: The page no longer scrolls back when slowly scrolling the classic editor out of the viewport while a contextual balloon, such as the link or bookmark balloon, is open. The sticky toolbar now returns to its regular position before notifying about the change of its sticky state.

  • ui: Pressing Esc while a tooltip of the focused toolbar button is visible now moves the focus back to the editing area with a single key press. Previously, the first press only hid the tooltip. Tooltips displayed on mouse hover can still be dismissed with Esc without triggering other actions. Closes #18333.

    Thanks to @minwookshin.

  • ui: UI buttons and inputs now use the editor UI font (--ck-font-family) everywhere. Before, controls rendered outside the reset styles, for example inside regions excluded from the UI reset, fell back to the browser’s default font, so a theme could not change their font through tokens. Closes #20258.

  • ui: Border colors of inputs, dropdown panels, balloon panels, toolbars, and autocomplete results set on a narrower selector than :root now apply again, under both the legacy and the new token names. Their border shorthand tokens can still be overridden, but they no longer hold a value you can read. To use these borders in your own CSS, read their border color tokens instead.

  • ui: Dropdown panels, dropdown menu panels, autocomplete results, the color selector, and list dropdown items now follow --ck-border-radius-surface set on :root (or :host), because --ck-border-radius-uniform derives from it. Override --ck-border-radius-uniform to set them apart.

  • utils: Balloons, such as tooltips, the link balloon, or the mention list, are no longer displaced by the page scroll when the <body> element or the overlay container is positioned. The Rect#toAbsoluteRect() method no longer counts the page scroll twice when the element has a positioned ancestor. Closes #20251.

  • utils: The collectStylesheets() helper no longer fails when collecting the editor content styles with the EDITOR_STYLES token in Safari after a modal dialog has been opened in the editor.

    Safari lists style sheets created by scripts, such as the one that blocks page scrolling while a modal dialog is open, in document.styleSheets. These style sheets are not attached to any element and caused an error. They are now skipped.

  • widget: The buttons for inserting a paragraph next to a widget now use a dedicated theme token for their icon color in the blurred-editor state, so customizing the widget outline color no longer unintentionally recolors them.

Other changes

  • ai, comments: The comment field, comment editing field, and chat renaming field in AI Chat History now have visible borders and display a focus ring when focused. The buttons below the comment field are smaller.

  • comments: Comment threads in the comments archive now match the refreshed look of comment annotations, with the commented content quoted in the first comment instead of a thread header.

  • real-time-collaboration: Real-time collaboration editors now start faster.

    The initial comments, suggestions and revisions are now fetched in parallel during the editor initialization, followed by a single request for the users they reference, instead of one feature after another.

  • revision-history: Revision History sidebar cards now match the refreshed editor UI. Revision names are edited in a bordered field with “Save” and “Cancel” buttons instead of saving on focus loss, and “Name this revision” is now the first revision action and no longer changes the revision displayed in the viewer.

  • typing: The delete event fired when pressing Backspace at the beginning of an editing root or a nested editable now has the view document as its source instead of the global DOM document.

  • uploadcare: The loading shimmer of an image being processed in Uploadcare image editing now reads the semantic --ck-color-surface-skeleton and --ck-color-surface-skeleton-highlight colors, which resolve to the same values as before. Restyling the skeleton surface once on :root (or :host in a shadow root) now also reaches it. See ckeditor/ckeditor5#20259.

  • The development environment for CKEditor 5 now requires Node v26.10.

CKEditor 5 v49.0.1 release

CKEditor 5 v49.0.1 is now available.

Release highlights

This release addresses three cross-site scripting (XSS) vulnerabilities, two in the Track Changes plugin and one in CKEditor AI. Under specific conditions, described below, each of them could lead to unauthorized JavaScript code execution.

The first vulnerability (GHSA-2x29-fwvw-5g7x) can be triggered by inserting a specially crafted suggestion into the editor. It affects only installations where Track Changes is enabled together with a feature that allows assigning a color or background color to an element, such as the Font Color or Font Background Color plugins.

The second vulnerability (GHSA-xh7q-269v-94j2) affects the “Preview final content” feature of Track Changes and can be triggered when the final content preview is displayed. It applies only to installations that use a plugin allowing unsafe markup in the editor data output, such as General HTML Support with a non-default configuration or HTML Embed.

The third vulnerability (GHSA-vjh8-qw64-q282) can be triggered by inserting a specially crafted message into the CKEditor AI chat. It affects only installations where CKEditor AI is enabled, and exploitation requires tricking the model into returning specific output, for example through prompt injection.

You can read more details in the relevant security advisories and contact us if you have more questions.

We would like to thank Won Yong Jeon for reporting these vulnerabilities.

Other changes

  • track-changes: The final content preview now renders the content using the editing pipeline instead of the data pipeline, so the preview looks and behaves like the content in the read-only editor.

Previous releases

The changelog above covers the three latest releases only. To learn about older releases:

  • Read the release notes on GitHub. Every CKEditor 5 release has its own entry with the full list of changes.
  • Browse the CHANGELOG.md file in the CKEditor 5 repository. It collects the changelog entries of all releases in a single file, so you can search across them.
  • Check the update guides in the Update guides section of the sidebar. They describe breaking changes and migration steps for each major version. For versions older than v42, see the Updating from older versions guide.
  • Read the release announcements on the CKEditor Ecosystem Blog.

LTS Edition releases

The CKEditor 5 LTS Edition is maintained in its own release line, currently v47.x. Its releases are not listed in this guide. For their changelog, see the LTS Edition changelog in the dedicated LTS documentation. To learn more about the LTS Edition, see the CKEditor 5 LTS Edition guide.