Skip to main content

Primary tabs

CKEditor 5

Every Drupal content creator knows CKEditor,  now the new version is out of CKEditor5 and CKEditor4 is deprecated for Drupal 9 and on.

The Ckeditor is officially a TypeScript  rich text editor, now providing official typings for all its packages. Best of all, the TypeScript migration doesn’t cause any breaking changes and is seamless for JavaScript projects.

What are the benefits of a TypeScript editor?

The key benefit of being a TypeScript editor is that it provides an improved developer experience (DX) by making it easier to write type-safe code, better code completion, and error checking in IDEs.
These changes improve the overall code quality of CKEditor – giving it more excellent stability and lifting its performance.

For any developer who customizes the CKEditor code, the change to Typescript makes the CKEditor latest version:

  • More straightforward to write better, more reliable code
  • Easier to maintain the code, especially when it comes to larger, longer, and more complex projects.

These DX improvements are made possible by an additional safety layer provided by the compiler, and an IDE that suggests types and autocompletes.

While CKEditor remains unchanged for content authors, professional developers, and the community there are some changes worth mentioning:

  • You can keep using CKEditor 5 in JavaScript
  • Your custom plugins don’t need to be updated unless you plan to move them to TypeScript
  • Documentation is available for both JavaScript and TypeScript
  • API documentation has actual and comprehensive TypeScript types

If you’d like to read more about TypeScript support for CKEditor's latest version, refer to TypeScript Support or CKEditor 5 v37.0.0 update guide in our documentation.

Comments archive – feature update

The CKEditor 5 v37.0.0 release also contains a feature update to the Comments plugin.
This new ‘archive’ functionality allows you to archive (or store/cache) the comments made and takes the editor one step closer to being the ultimate collaborative rich text editor.

With this update, users can now archive comments – while still being able to view and restore those archived comments via the toolbar.

Multi-root editor – progress update

In the CKEditor 5 v37.0.0 release, an official multi-root editor type, and a new multi-root editor build were introduced.

Additionally, there are fundamental improvements that make the multi-root editor more flexible, making it possible for developers to build such instances that allow users to:

  • Add or remove editing fields in your application in a dynamic fashion (i.e. after the editor was initialized), without the need to create additional editor instances.
  • Use root attributes to store additional metadata related to roots (editable fields) to make it easier to further customize the editing experience according to your needs.