Releases: ckeditor/ckeditor5-react
v11.2.0
Features
-
The
useMultiRootEditorhook now returnsaddRootandremoveRoothelpers directly. Previously, adding or removing a root required manually manipulating thedataandattributesstate outside the hook. You can now call them directly:const { addRoot, removeRoot } = useMultiRootEditor( props ); await addRoot({ name: 'my-root', data: '<p>Hello</p>', attributes: { order: 10 }, editableOptions: { element: 'section', placeholder: 'Start typing...', label: 'My section' } }); await removeRoot( 'my-root' );
-
The
<CKEditor>component now supports paragraph-like editor configurations. Whenconfig.root.element(orconfig.roots.main.element) is provided, you can customize the tag name, CSS classes and inline styles of the editable element instead of relying on the default plain<div>. -
Each editable root in the multi-root editor can now be configured independently with its own HTML element type, placeholder text and accessible label. Pass an
editableOptionsobject toaddRootto control theelement(e.g.'section','article'),placeholderand assistive-technologylabelfor that specific root.
Other changes
- Readme simplification.
v11.1.2
Bug fixes
- Fixed an issue where the editor's alpha version was being compared incorrectly.
v11.1.1
v11.1.0
v11.1.0-alpha.1
Bug fixes
- Fixed incorrect nightly version detection. Closes #659.
v11.1.0-alpha.0
Features
- Added support for CKEditor 5
48.0.0and the newrootseditor configuration. Closes #653.
v11.0.1
v11.0.0
BREAKING CHANGES
- Aligned the component with the latest CKEditor 5 release (
v46.0.0), adopting the type import names. Starting from this version, previous CKEditor 5 releases are no longer compatible due to breaking changes in definitions and package structure. See ckeditor/ckeditor5#18583
Features
v11.0.0-alpha.0
BREAKING CHANGES
- Aligned the component with the latest CKEditor 5 release (
v46.0.0), adopting the type import names. Starting from this version, previous CKEditor 5 releases are no longer compatible due to breaking changes in definitions and package structure. See ckeditor/ckeditor5#18583
Features
v10.0.0
BREAKING CHANGES
- Upgraded the minimal version of Node.js to 20.0.0 due to the end of LTS.
Bug fixes
- Ensured
onErrorcallback is invoked correctly whendisableWatchdogis true or during watchdog initialization failure. (commit) - Prevented editor crash when the
disabledprop changes during initialization. (commit)
Other changes
- Upgraded the minimal version of Node.js to 20.0.0 due to the end of LTS. (commit)