Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-alignment

Package Overview
Dependencies
Maintainers
1
Versions
689
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-alignment

Text alignment feature for CKEditor 5.

  • 41.4.0-alpha.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
264K
decreased by-12.88%
Maintainers
1
Weekly downloads
 
Created

What is @ckeditor/ckeditor5-alignment?

@ckeditor/ckeditor5-alignment is a plugin for CKEditor 5 that allows you to align text within the editor. It provides a user-friendly interface for aligning text to the left, center, right, or justify.

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

Left Alignment

This feature allows you to align text to the left. The code sample demonstrates how to configure the editor to include only the left alignment option.

ClassicEditor.create(document.querySelector('#editor'), { alignment: { options: ['left'] } })

Center Alignment

This feature allows you to align text to the center. The code sample shows how to configure the editor to include only the center alignment option.

ClassicEditor.create(document.querySelector('#editor'), { alignment: { options: ['center'] } })

Right Alignment

This feature allows you to align text to the right. The code sample demonstrates how to configure the editor to include only the right alignment option.

ClassicEditor.create(document.querySelector('#editor'), { alignment: { options: ['right'] } })

Justify Alignment

This feature allows you to justify text. The code sample shows how to configure the editor to include only the justify alignment option.

ClassicEditor.create(document.querySelector('#editor'), { alignment: { options: ['justify'] } })

Multiple Alignments

This feature allows you to provide multiple alignment options. The code sample demonstrates how to configure the editor to include left, center, right, and justify alignment options.

ClassicEditor.create(document.querySelector('#editor'), { alignment: { options: ['left', 'center', 'right', 'justify'] } })

Other packages similar to @ckeditor/ckeditor5-alignment

Keywords

FAQs

Package last updated on 18 Apr 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