Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@ckeditor/ckeditor5-highlight
Advanced tools
@ckeditor/ckeditor5-highlight is a plugin for CKEditor 5 that allows users to highlight text with different colors. It is useful for emphasizing parts of the text, making it easier to spot important information, or for collaborative editing where different colors can represent different users' contributions.
Highlight Text
This feature allows users to highlight text within the editor. The code sample demonstrates how to initialize CKEditor with the Highlight plugin and add the highlight button to the toolbar.
ClassicEditor.create(document.querySelector('#editor'), { plugins: [ Highlight ], toolbar: [ 'highlight' ] })
Custom Highlight Options
This feature allows users to define custom highlight options. The code sample shows how to configure the editor with custom highlight colors and options.
ClassicEditor.create(document.querySelector('#editor'), { plugins: [ Highlight ], toolbar: [ 'highlight' ], highlight: { options: [ { model: 'yellowMarker', class: 'marker-yellow', title: 'Yellow marker', color: 'var(--ck-highlight-marker-yellow)', type: 'marker' }, { model: 'greenMarker', class: 'marker-green', title: 'Green marker', color: 'var(--ck-highlight-marker-green)', type: 'marker' } ] } })
Quill is a modern WYSIWYG editor built for compatibility and extensibility. It offers a similar text highlighting feature through its built-in formats and can be extended with custom formats. Compared to @ckeditor/ckeditor5-highlight, Quill provides a more flexible and extensible architecture but may require more configuration for advanced use cases.
TinyMCE is another popular WYSIWYG editor that includes text highlighting capabilities. It offers a wide range of plugins and customization options. TinyMCE is comparable to @ckeditor/ckeditor5-highlight in terms of functionality but provides a different API and configuration approach.
This package implements text highlight support for CKEditor 5.
Check out the demo in the highlight feature guide.
See the @ckeditor/ckeditor5-highlight
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.
FAQs
Highlight feature for CKEditor 5.
The npm package @ckeditor/ckeditor5-highlight receives a total of 94,283 weekly downloads. As such, @ckeditor/ckeditor5-highlight popularity was classified as popular.
We found that @ckeditor/ckeditor5-highlight 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.