Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@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 207,659 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.