41.3.1 • Published 4 days ago

@rickx/ckeditor5-line-height v41.3.1

Weekly downloads
-
License
GPL-2.0-or-later
Repository
github
Last release
4 days ago

ckeditor5-line-height

The line height plugin for ckeditor5.

Quick start

First, install the build from npm:

pnpm i @rickx/ckeditor5-line-height
# or
yarn add @rickx/ckeditor5-line-height
# or
npm i @rickx/ckeditor5-line-height

Use it in your application:

import { LineHeight } from '@rickx/ckeditor5-line-height'

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 ['default', 1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2, 2.5]
      options: [
        1.2,
        1.5,
        'default',
        '14px',
        '16px',
        '18px',
        {
          title: 'Normal',
          model: '1',
        },
        {
          title: 'Huge',
          model: '36px'
        },
      ],
    },
    toolbar: [
      /* ..., */
      'lineHeight', // add the button to your toolbar
    ],
  })
  .then(/* ... */)
  .catch(/* ... */)

License

Licensed under the terms of GNU General Public License Version 2 or later.

41.3.1

4 days ago

41.3.0

4 days ago

40.0.0

1 month ago

41.2.0

1 month ago

41.2.1

1 month ago

41.1.1

2 months ago

41.1.0-rc.1

2 months ago

41.1.0

2 months ago

41.0.0

3 months ago

40.2.0

4 months ago

0.3.2

4 months ago

0.3.1

4 months ago

0.3.0

5 months ago

0.2.0

5 months ago

0.1.0

5 months ago