ckeditor5-line-height-plugin

0.1.6 • Public • Published

ckeditor5-line-height-plugin

Plugin for CKEditor5 to create button to change the line height of the selected block.

Get Started

First, install the build from npm:

npm install --save ckeditor5-line-height-plugin

or using yarn:

yarn add ckeditor5-line-height-plugin

Use it in your application:

import LineHeight from 'ckeditor5-line-height-plugin/src/lineheight';

Some users had prblems with styling. In this case try importing this plugin as your first import.

Add it to your editor:

ClassicEditor
    .create( document.querySelector( '#editor' ), {
        plugins: [
            ...,
            LineHeight, // add it to your plugins array
        ],
        lineHeight: { // specify your otions in the lineHeight config object. Default values are [ 0, 0.5, 1, 1.5, 2 ]
            options: [ 0.5, 1, 1.5, 2, 2.5 ]
        }
        toolbar: [
            ...,
            'lineHeight', // add the button to your toolbar
        ]
    } )

Localization

Currently supported translations:

  • English
  • German

License

Licensed under the terms of GNU General Public License Version 3.

Readme

Keywords

none

Package Sidebar

Install

npm i ckeditor5-line-height-plugin

Weekly Downloads

1,066

Version

0.1.6

License

GPL-2.0-or-later

Unpacked Size

81 kB

Total Files

12

Last publish

Collaborators

  • p0thi