What is @ckeditor/ckeditor5-enter?
@ckeditor/ckeditor5-enter is a plugin for CKEditor 5 that handles the 'Enter' key behavior in the editor. It provides functionality for handling new lines and paragraphs when the 'Enter' key is pressed, ensuring a consistent and expected user experience.
What are @ckeditor/ckeditor5-enter's main functionalities?
Handling Enter Key for New Paragraphs
This feature allows the editor to create a new paragraph when the 'Enter' key is pressed. The Enter plugin is included in the editor configuration to handle this behavior.
ClassicEditor.create(document.querySelector('#editor'), { plugins: [ Enter ] })
Soft Line Breaks
This feature allows the editor to insert a soft line break (a new line within the same paragraph) when 'Shift+Enter' is pressed. The ShiftEnter plugin is included alongside the Enter plugin to handle this behavior.
ClassicEditor.create(document.querySelector('#editor'), { plugins: [ Enter, ShiftEnter ] })
Other packages similar to @ckeditor/ckeditor5-enter
@ckeditor/ckeditor5-paragraph
The @ckeditor/ckeditor5-paragraph package provides support for paragraph handling in CKEditor 5. It is often used in conjunction with the Enter plugin to manage paragraph creation and formatting. While @ckeditor/ckeditor5-enter focuses on the 'Enter' key behavior, @ckeditor/ckeditor5-paragraph provides broader paragraph management capabilities.
quill
Quill is a modern WYSIWYG editor built for compatibility and extensibility. It provides similar functionality for handling the 'Enter' key and creating new paragraphs or line breaks. Quill offers a different API and configuration approach compared to CKEditor 5 but serves a similar purpose in text editing applications.
tinymce
TinyMCE is another popular WYSIWYG editor that provides extensive text editing capabilities, including handling the 'Enter' key for new paragraphs and line breaks. TinyMCE offers a rich set of plugins and configuration options, making it a strong alternative to CKEditor 5 for various text editing needs.
42.0.2 (July 25, 2024)
We are happy to announce the release of CKEditor 5 v42.0.2.
Release highlights
This is a patch release that includes the following bug fixes for new installation methods introduced in v42.0.0:
- Fixed type definitions for the imports used in the optimized build (see #16684).
- Fixed minor issues with the
ckeditor5-editor.css
, ckeditor5-content.css
, and other optimized style sheets (see #16703). - Fixed issues with installing and loading the CKEditor 5 packages using Yarn PnP (see #16646).
- Fixed issues with loading CSS and translation files with older bundlers, such as Vite 2 and Vite 3 (see #16638).
Additionally, we fixed some performance issues in the track changes plugin. The editing experience was heavily affected if there were many (hundreds or more) suggestions in the document. This was a regression introduced in v41.0.0.
Bug fixes
- ckeditor5: Changed the path to the types in the
package.json
. See #16684. (commit) - ckeditor5: Updated the
exports
field in package.json
to fix issues with loading CSS and translations in older bundlers. See #16638. (commit) - ckeditor5-premium-features: Changed the path to the types in the
package.json
. - ckeditor5-premium-features: Updated the
exports
field in package.json
to fix issues with loading CSS and translations in older bundlers. - Added dependencies used in the new
dist
folder as production dependencies
instead of devDependencies
. Related to #16646. (commit)
Other changes
- track-changes: Performance fixes for scenarios where hundreds of suggestions exist in the document.
Released packages
Check out the Versioning policy guide for more information.
<details>
<summary>Released packages (summary)</summary>
Other releases:
</details>