npm ckeditor5 47.0.0

9 hours ago

We are happy to announce the release of CKEditor 5 v47.0.0.

Release highlights

CKEditor AI (early access)

We are introducing CKEditor AI, a set of versatile AI-powered features that integrate directly into CKEditor 5. It brings generation, summarization, correction, contextual chat help, reviews, and many other capabilities, right into the editor. With CKEditor AI, users will no longer need to switch between the editor and AI tools.

Three features are available in this early access phase:

  • Chat: a conversational AI for dynamic, multi-turn interactions that support various context sources, model selection, which can perform changes directly on the document.
  • Quick actions: one-click transformations and instant insights for selected text.
  • Review: automatic checks for grammar, tone, correctness, style, and more, with UX optimized for performing full-document review.

Each feature is powered by our state-of-the-art AI service, available in the Cloud today and coming soon for on-premises deployments. This makes CKEditor AI a true plug-and-play solution that works out of the box, eliminating the need for months of custom development.

CKEditor AI is available as part of our free trial in early access.

Long-term Support (⭐)

We are introducing the CKEditor 5 LTS (Long-term Support) Edition, giving teams up to 3 years of stability with guaranteed updates.

The first LTS release is v47.0.0 (October 2025). It will receive 6 months of active development with new features and fixes, then 2.5 years of maintenance with security and critical compatibility updates.

For v47.x, the Maintenance phase starts in April 2026. From then, the next versions in the v47.x line will be available only under a commercial LTS Edition license. Therefore, starting in April, integrators without an LTS license should migrate to v48.x (the next regular release).

If you need long-term stability, contact sales or read more about CKEditor 5 LTS Edition.

Other improvements and fixes

This release also brings several smaller but important enhancements and fixes:

  • Widgets: the default Tab/Shift+Tab navigation now works better inside nested editables, improving usability. This change is also reflected in the editor’s current widgets (like tables), leading to more intuitive keyboard navigation.
  • UI: dialogs in custom features can now be positioned programmatically with more flexible options (Dialog#show()).
  • Comments: confirmation views for deleting comments and threads now use simplified CSS selectors (.ck-confirm-view). You may need to adjust custom styles accordingly.

Please refer to the update guide to learn more about these changes.

MAJOR BREAKING CHANGES ℹ️

  • ai: Due to the release of the new AI feature, the ai.* configuration structure has changed. Until now, the configuration object was used for the former AIAssistant feature. Now, this configuration space is used for all AI related features. Configuration for the AIAssistant was moved. The changes are:
    • ai.aiAssistant -> ai.assistant,
    • ai.useTheme -> ai.assistant.useTheme,
    • ai.aws -> ai.assistant.adapter.aws,
    • ai.openAI -> ai.assistant.adapter.openAI.

MINOR BREAKING CHANGES ℹ️

  • table, widget: The Widget feature implements the default handling for Tab/Shift+Tab to navigate nested editable elements in the editor content. Closes #19083. The listeners are registered on the low priority bubbling event in the context of widgets and editable elements. Please verify if your custom Tab/Shift+Tab handling does not collide with the default one.
  • ai: The internal structure of the package has changed. Importing AIAssistant from the source should be done via @ckeditor/ckeditor5-ai/src/aiassistant/aiassistant.js path instead of the previous @ckeditor/ckeditor5-ai/src/aiassistant.js.
  • comments: Changed the CSS selectors used to style the confirmation view displayed when attempting to remove a comment or an entire comment thread. For now, CSS classes will be more generic, for example: .ck-confirm-view instead of .ck-thread__remove-confirm. If you override styles for these components, you will need to update the selectors.
  • undo: The UndoCommandRevertEvent type was renamed to UndoRedoBaseCommandRevertEvent and moved to the basecommand.ts file. Adjust your code if you have used this type in your custom integration. See #19168.
  • Updated to TypeScript 5.3.

Features

  • ai: Introduced CKEditor AI, a brand-new set of versatile AI-powered features, including: chat, quick actions, and document review capabilities.
  • ui: The position parameter in Dialog#show() now can be a function that takes dialogRect and domRootRect parameters and should return an object with top and left properties or null. It can be used to specify a custom positioning for the dialog. Closes #19167.

Bug fixes

  • engine: The markerToHighlight() converter did not clone the view configuration if passed as plain object leading to incorrect behavior. This affects only custom plugins that used this converter in the described way. Closes #19105.

  • engine: The bubbling events now trigger event callbacks according to the registered priorities even if multiple custom contexts are provided. See #19083.

  • export-inline-styles: Fix specificity calculation to handle :where() selectors correctly.

  • link: The link manual decorators are no longer lost when caption is added to an image. Closes #19024.

  • pagination: Pagination lines should calculate properly for pages with larger horizontal margins.

  • revision-history: Fixed a crash which happened under specific circumstances when a revision was created when document was exported using the Cloud Services REST API (GET /documents/ endpoint).

    Although the fix was necessary in Revision History feature code, it was only reproducible in scenarios involving using the mentioned export endpoint.

Other changes

  • comments: Corrected types for the resolvedBy parameter in CommentThread#resolve. It was previously typed as undefined | null, and is now properly typed as undefined | string.
  • undo: RedoCommand will now fire 'revert' event when executed, similarly to UndoCommand. Type UndoCommandRevertEvent was renamed to UndoRedoBaseCommandRevertEvent and moved to basecommand.ts file. Closes #19168.

Released packages

Check out the Versioning policy guide for more information.

Released packages (summary)

Major releases (contain major breaking changes):

Minor releases (contain minor breaking changes):

Releases containing new features:

Other releases:

Don't miss a new ckeditor5 release

NewReleases is sending notifications on new releases.