v9.0.0
We are excited to announce a new major release of the React integration.
In this release, we have introduced the following breaking changes that should make using the integration more intuitive and easier.
- ESM-first: Besides the UMD build, the integration is now available in ESM format. In most projects, the new ESM build should be automatically prioritized by bundlers and other tools.
- Support for React 19: We improved support for using the integration in React 19. As a result, the
<CKEditorContext>
component and theuseMultiRootEditor
hook should no longer throw errors. - New name of the global variable: The name of the global variable used in the UMD build changed from
CKEditor
toCKEDITOR_REACT
.
BREAKING CHANGES
- Change the global name used in the UMD build from
CKEditor
toCKEDITOR_REACT
. onReady
in theCKEditorContext
behavior has been changed after fixing race conditions in our integration introduced with the newest React versions. Presently,onReady
is called after initialization of Context, and then we attach editors to it.
Bug fixes
- Adjusted
CKEditorContext
format to prevent race conditions in theCKEditor
component. (commit) - Change JSX runtime to
classic
so thatreact-jsx-runtime
is not bundled. (commit) - Change the global name used in the UMD build from
CKEditor
toCKEDITOR_REACT
to match the new convention. See ckeditor/ckeditor5#16736. (commit)