ckeditor5-line-height-latest

1.0.2 • Public • Published

ckeditor5-line-height-latest

Plugin for CKEditor5 to change your lingheight.

Get Started

Install:

npm install --save ckeditor5-line-height-latest

or using yarn:

yarn add ckeditor5-line-height-latest

Use it in your application:

import LineHeight from "ckeditor5-line-height-latest/src/lineheight";

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

License

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

Readme

Keywords

none

Package Sidebar

Install

npm i ckeditor5-line-height-latest

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

9.34 kB

Total Files

7

Last publish

Collaborators

  • sonic.lee