@ckeditor/ckeditor5-react
Advanced tools
Changelog
9.5.0-alpha.0 (2025-02-10)
prop-types
package from dependencies. (commit)Changelog
9.4.0 (2024-11-25)
onChangeInitializedEditors
on startup of CKEditorContext
if there are ready editors. (commit)Changelog
9.4.0-alpha.0 (2024-11-13)
onChangeInitializedEditors
on startup of CKEditorContext
if there are ready editors. (commit)Changelog
9.3.1 (2024-10-16)
useCKEditorCloud
hook is now consistent with Vite
and Next
runtimes while changing properties. (commit)useMultiRootEditor
during the initialization phase when setting the new state of the multi-root editor with an attached watchdog. Closes #542. (commit)Changelog
9.1.0 (2024-09-05)
We added an onChangeInitializedEditors
callback to CKEditorContext
component to allow tracking newly initialized editors within the JSX React tree.
Example
<CKEditorContext
context={ ClassicEditor.Context }
contextWatchdog={ ClassicEditor.ContextWatchdog }
onChangeInitializedEditors={ editors => {
console.log( editors );
}}
>
<CKEditor
editor={ ClassicEditor }
data="<h2>Editor</h2>"
contextItemMetadata={{
name: 'editor1',
user: { id: '2' }
}}
/>
<CKEditor
editor={ ClassicEditor }
data="<h2>Another Editor</h2><p>... in a common Context</p>"
contextItemMetadata={{
name: 'editor2'
}}
/>
</CKEditorContext>
onChangeInitializedEditors
will be called twice in the example above:
{ editor1: ... }
{ editor1: ..., editor2: ... }
⚠️ Order of initialization is not guaranteed. editor2
might be initialized before editor1
.
onChangeInitializedEditors
callback to CKEditorContext to allow tracking of newly initialized editors within the JSX React tree. Closes #513. (commit)useCKEditorCloud
hook for managing asynchronous loading of CKEditor from a CDN. (commit)withCKEditorCloud
HOC to simplify CKEditor integration with CDN in React components. (commit)Changelog
9.0.0 (2024-08-07)
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.
<CKEditorContext>
component and the useMultiRootEditor
hook should no longer throw errors.CKEditor
to CKEDITOR_REACT
.CKEditor
to CKEDITOR_REACT
.CKEditorContext
format to prevent race conditions in the CKEditor
component. (commit)classic
so that react-jsx-runtime
is not bundled. (commit)CKEditor
to CKEDITOR_REACT
to match the new convention. See ckeditor/ckeditor5#16736. (commit)Changelog
9.0.0-alpha.1 (2024-07-17)
CKEditor
to CKEDITOR_REACT
.classic
so that react-jsx-runtime
is not bundled. (commit)CKEditor
to CKEDITOR_REACT
to match the new convention. See ckeditor/ckeditor5#16736. (commit)