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
quill
Quill is a modern WYSIWYG editor built for compatibility and extensibility. It provides text alignment options similar to @ckeditor/ckeditor5-alignment, but it is a different editor with its own set of plugins and configuration options.
tinymce
TinyMCE is a popular rich text editor that offers a wide range of features, including text alignment. It is similar to @ckeditor/ckeditor5-alignment in terms of functionality but is a different editor with its own ecosystem and plugins.
froala-editor
Froala Editor is a lightweight WYSIWYG HTML Editor written in JavaScript that enables rich text editing capabilities, including text alignment. It is comparable to @ckeditor/ckeditor5-alignment but is a different editor with its own set of features and plugins.