Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-highlight

Package Overview
Dependencies
Maintainers
1
Versions
610
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-highlight

Highlight feature for CKEditor 5.


Version published
Weekly downloads
219K
increased by8.12%
Maintainers
1
Weekly downloads
 
Created

What is @ckeditor/ckeditor5-highlight?

@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.

What are @ckeditor/ckeditor5-highlight's main functionalities?

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' } ] } })

Other packages similar to @ckeditor/ckeditor5-highlight

Keywords

FAQs

Package last updated on 30 Aug 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc