What is @ckeditor/ckeditor5-paragraph?
@ckeditor/ckeditor5-paragraph is a plugin for CKEditor 5 that provides support for paragraph formatting. It allows users to create and manage paragraphs within the CKEditor 5 rich text editor, offering basic text formatting capabilities.
Basic Paragraph Creation
This feature allows users to create and manage paragraphs within the CKEditor 5 editor. The code sample demonstrates how to initialize CKEditor 5 with the Paragraph plugin.
ClassicEditor.create(document.querySelector('#editor'), { plugins: [ Paragraph ], toolbar: [ 'paragraph' ] })
Custom Paragraph Configuration
This feature allows users to customize the paragraph options available in the toolbar. The code sample shows how to configure custom paragraph options.
ClassicEditor.create(document.querySelector('#editor'), { plugins: [ Paragraph ], toolbar: [ 'paragraph' ], paragraph: { options: [ { model: 'paragraph', title: 'Paragraph', class: 'ck-paragraph' } ] } })