npm ckeditor5 40.2.0

latest releases: 0.0.0-nightly-20241110.0, 0.0.0-nightly-20241109.0, 0.0.0-nightly-20241108.0...
11 months ago

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

Release highlights

AI Assistant: AWS and custom integrations

Enabling multiple AI model service was one of our priorities for the AI Assistant, as we wanted everyone to be able to use a platform that they find the most convenient.

We are happy to inform that as of this release, you can use the AI Assistant together with the AWS Bedrock service.

What is more, you can now extend existing adapters to enable more advanced customizations, such as decorating the AI Assistant requests.

Finally, you can even provide your own custom adapter to connect to your own model, or any model that does not have an official adapter yet.

Visit our new integration guide to learn more about integrating and customizing the AI Assistant feature.

Note that these improvements come with minor breaking changes in the editor configuration, so make sure to visit the breaking changes section and the update guide.

Image editing

CKBox’s image editing capabilities, introduced in CKBox v1.6.0, are now accessible straight from the CKEditor image toolbar. CKBox users can resize, crop or rotate images right within CKEditor.

Additionally, you can also edit images which are not yet added to CKBox (for example hotlinked images). CKBox will automatically download the images in the background, to allow users to edit them without having to leave CKEditor to manually add the image into CKBox. This dual functionality, combined with server-side processing, ensures ease of use and maintains high image quality and file integrity, providing a more efficient and reliable image editing experience within CKEditor.

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

(Experimental) Paste Markdown

This release introduces the new Paste Markdown feature. It will automatically format any raw Markdown source or output copied and pasted directly into the editor – without having to switch to source editing. This feature is in its experimental phase, and its behavior may change in the future. Experience this functionality firsthand by pasting Markdown content into the demo editor. We welcome your feedback and observations for ongoing improvements, so please share them in the GitHub issue.

(Coming soon!) New installation methods

We are excited to announce upcoming improvements to CKEditor 5's installation process, set to release next year. Our goal is to address and resolve the accumulated pain points that you experienced over the years. For a detailed overview of our plans and the background behind them, dive into our comprehensive proposal in the RFC. Your feedback is crucial in refining and perfecting these improvements, and we eagerly await your input!

Other notable improvements

  • Improved insert image button: our insertImage component now supports file managers, and automatically detects if you are using CKBox. We also changed the default icon for upload image from computer to better indicate it’s an upload action, not a generic image button.
  • Paste link over text: the editor automatically converts selected text to a link when you paste a URL onto it.

MINOR BREAKING CHANGES ℹ️

  • ai: The configuration for AI Assistant has changed and will require an update. Additionally, a proper adapter (OpenAIAdapter, AWSAdapter, or a custom adapter) must be now explicitly added to the plugin list. See the update guide for details.
  • image: The ImageInsertUI plugin internals were cleaned up, as it worked a bit magically with hard-coded dependencies. For example, it automatically enabled the behavior of inserting image via URL. As of now, it will not enable any external behaviors. See the update guide for details.
  • list: The CollapsibleView has been moved from the @ckeditor/ckeditor5-list package to @ckeditor/ckeditor5-ui. You can import it like this: import { CollapsibleView } from '@ckeditor/ckeditor5-ui';

Features

  • ai: Introduced AWS Bedrock support for AI Assistant. See AI Assistant integration guide to learn more.

  • ckbox: Enabled editing of non-CKBox images in the editor. (commit)

  • ckbox: Integrated the CKBox Image Editing feature into the editor. (commit)

  • image: Introduced the image insert dropdown as a consistent UI to insert images through different available integrations such as image upload, insert an image with the asset manager, and insert an image via URL. Closes #15303, #15149. (commit)

  • link: Links can now be applied by pasting a URL on a selected text. Closes #5656. (commit)

  • markdown-gfm: Added an experimental support for pasting markdown-formatted content. Closes #2321. (commit)

  • media-embed: Added support for short Dailymotion URLs (dai.ly) in media-embed. (commit)

    Thanks to @Kocal!

Bug fixes

  • ai: The fake selection marker was not always properly removed when AI Assistant UI was closed.
  • ai: A user prompt containing special characters was incorrectly displayed in the prompt field (special characters were incorrectly escaped).
  • ai: The AI Assistant error message should be cleared upon closing the balloon.
  • engine: Fixed crash happening in a very peculiar scenario involving reconversion of an element containing a marker. Closes #15411. (commit)
  • html-support: DocumentSelection should not store the GHS linkA attribute if the linkHref attribute was removed by the two-step caret movement feature. Closes #15051. (commit)
  • html-support: The editor should not crash when there is a <template> element in the content. Closes #14933. (commit)
  • paste-from-office: Content from Word documents should be pasted correctly (without HTML styles tag content) on Windows systems. Closes #15333, #9002. (commit)
  • track-changes: Prevented joining two block format suggestions made on widgets placed next to each other, which was an undesirable behavior. Fixed related editor crash involving two tables with resized columns.
  • track-changes: Fixed incorrect handling of attribute suggestions made on a paragraph-like element when the element had insertion suggestion inside.

Other changes

  • ai: Introduced support for the OpenAI gpt-3.5-turbo-1106 model in AI Assistant.
  • ai: Secured AI Assistant from incorrect responses that do not being with the processed HTML.
  • ai: Introduced the AITextAdapter abstract class that can be extended to provide custom adapter for AI Assistant.
  • ai: Introduced OpenAIAdapter and AWSAdapter that can be extended to customize how AI Assistant requests and responses are handled.
  • ai: Reorganized the configuration parameters for AI Assistant. See the API documentation and migration guide.
  • ai: Allowed to fully customize request headers by providing an object or a function to requestHeaders configuration parameter. See API docs and migration guide.
  • image: The ImageUploadUI plugin is loaded by default when the ImageBlock or ImageInline plugins are loaded. See #15149. (commit)
  • link: The logic behind the two-step caret movement extracted to the common code in the two-step caret movement feature. (commit)
  • list: The CollapsibleView class has been moved from the @ckeditor/ckeditor5-list package to @ckeditor/ckeditor5-ui. See #15149. (commit)
  • typing: The logic behind the two-step caret movement extracted to the common code in the two-step caret movement feature. (commit)
  • typing: Unified behavior of the insertText command for cases using the DocumentSelection and Selection as applied attributes behaved differently in those cases. (commit)
  • ui: The CollapsibleView class has been moved from the @ckeditor/ckeditor5-list package to @ckeditor/ckeditor5-ui. See #15149. (commit)
  • ui: The SplitButtonView constructor and createDropdown() helper accepts an instance of a ButtonView as an action view customization. See #15149. (commit)
  • upload: The FileDialogButtonView class is now an instance of the ButtonView, not just a wrapper on it. See #15149. (commit)
  • The undo and redo toolbar components described in the @ckeditor/ckeditor5-essentials/src/ckeditor5-metadata.json file are now defined in the package that registers those buttons (@ckeditor/ckeditor5-undo). Closes #15414. (commit)
  • Updated translations. (commit, commit, commit)

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.