Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@ckeditor/ckeditor5-enter
Advanced tools
@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.
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 ] })
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 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 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.
This package implements the Enter and Shift+Enter (soft break) support for CKEditor 5.
See the @ckeditor/ckeditor5-enter
package page in CKEditor 5 documentation.
npm install ckeditor5
Licensed under the terms of GNU General Public License Version 2 or later. For full details about the license, please check the LICENSE.md
file or https://ckeditor.com/legal/ckeditor-oss-license.
43.1.0 (September 5, 2024)
We are happy to announce the release of CKEditor 5 v43.1.0.
This release includes important bug fixes and enhancements for the editor:
Block merge fields: In contrast to regular, inline merge fields, the block merge fields are designed to represent complex, block-level structures, such as a dynamically generated table, a row of products, or a personalized call-to-action segment. Block merge fields are supposed to be replaced by arbitrary HTML data when the document template is post-processed or exported to a PDF or Word file.
Nested dropdown menus: this release introduces a new UI component: nested dropdown menus. They can be used by feature developers to easily provide an advanced user interface where UI elements are organized into a nested menu structure.
Customizable accessible label: You can now configure the label for the accessible editable area through the editor settings, ensuring it fits your system’s needs.
Improved table and cell border controls: It is now easier to manage both table and cell borders. The table user interface now clearly indicates the default border settings, allowing you to set “no borders” (None
) for tables and cells without any additional configuration.
⚠️ In some cases this update may lead to data changes in the tables’ HTML markup when the editor loads them. However, visually nothing will change, and the experience will be the same.
The full list of enhancements can be found below.
FAQs
Enter feature for CKEditor 5.
The npm package @ckeditor/ckeditor5-enter receives a total of 543,363 weekly downloads. As such, @ckeditor/ckeditor5-enter popularity was classified as popular.
We found that @ckeditor/ckeditor5-enter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.