Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@ckeditor/ckeditor5-special-characters
Advanced tools
@ckeditor/ckeditor5-special-characters is a plugin for CKEditor 5 that allows users to insert special characters into their content. This can be particularly useful for adding symbols, mathematical characters, and other non-standard text elements that are not easily accessible from a standard keyboard.
Inserting Special Characters
This feature allows users to insert special characters into their content. The code sample demonstrates how to add the SpecialCharacters plugin to a CKEditor 5 instance and include it in the toolbar.
ClassicEditor.create(document.querySelector('#editor'), { extraPlugins: [SpecialCharacters], toolbar: ['specialCharacters'] })
Customizing Special Characters
This feature allows users to customize the special characters available in the editor. The code sample shows how to define a custom category of special characters (in this case, arrows) and include it in the editor configuration.
ClassicEditor.create(document.querySelector('#editor'), { extraPlugins: [SpecialCharacters], toolbar: ['specialCharacters'], specialCharacters: { categories: [ { name: 'Arrows', characters: [ '→', '←', '↑', '↓' ] } ] } })
Quill is a modern WYSIWYG editor built for compatibility and extensibility. It offers a rich API for customizing the editor, including the ability to add special characters. Compared to @ckeditor/ckeditor5-special-characters, Quill provides a more general-purpose editor with a broader range of customization options.
TinyMCE is a popular rich text editor that provides a wide range of features, including the ability to insert special characters. It offers a plugin system similar to CKEditor, allowing users to extend its functionality. TinyMCE is comparable to @ckeditor/ckeditor5-special-characters in terms of its ability to handle special characters, but it also includes many other advanced editing features.
Draft.js is a JavaScript rich text editor framework, built for React. It allows for extensive customization and control over the editor's content and behavior. While it does not have a built-in special characters plugin, developers can create custom solutions to handle special characters. Draft.js offers more flexibility and control compared to @ckeditor/ckeditor5-special-characters, but requires more effort to implement similar functionality.
This package implements the special characters feature for CKEditor 5.
Check out the demo in the special character feature guide.
See the @ckeditor/ckeditor5-special-characters
package page as well as the special characters feature guide 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.1 (September 25, 2024)
We are happy to announce the release of CKEditor 5 v43.1.1.
During a recent internal audit, we identified a Cross-Site Scripting (XSS) vulnerability in the CKEditor 5 clipboard package (CVE-2024-45613
). This vulnerability could be triggered by a specific user action, leading to unauthorized JavaScript code execution, if the attacker managed to insert malicious content into the editor, which might happen with a very specific editor configuration.
This vulnerability affects only installations where the editor configuration meets the following criteria:
You can read more details in the relevant security advisory and contact us if you have more questions.
Taking the occasion, we decided to introduce additional hardening to some parts of our codebase that introduce theoretical and unexploitable issues. Our security team confirmed that none of these issues were exploitable in a real scenario, however, we decided to fix them, in order to increase the overall security posture of our software.
Check out the Versioning policy guide for more information.
<details> <summary>Released packages (summary)</summary>Other releases:
FAQs
Special characters feature for CKEditor 5.
The npm package @ckeditor/ckeditor5-special-characters receives a total of 182,358 weekly downloads. As such, @ckeditor/ckeditor5-special-characters popularity was classified as popular.
We found that @ckeditor/ckeditor5-special-characters demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.