0.0.6 • Published 5 years ago

ckeditor5-iswordcount v0.0.6

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

ckeditor5-iswordcount Tweet

npm version npm download npm license

This package implements characters count support for CKEditor 5.

alt text

This code is a code refactor from Word Count & Char Count Plugin for CKEditor4. This plugin is far from perfect so it is expected to understand the limitations of the features.

Feature

  • Char Count
  • Word Count
  • Paragraph Count

Installation

To add this feature to your editor, install the ckeditor5-iswordcount package:

npm i ckeditor5-iswordcount

And add it to your plugin list and toolbar configuration:

import ISWordCount from 'ckeditor5-iswordcount';

ClassicEditor
    .create( document.querySelector( '#editor' ), {
        plugins: [ ISWordCount, ... ],
        toolbar: [ 'iswordcount', ... ]
        iswordcount: { maxCharCount: 10, maxHandler: (charCount, maxCharCount) => alert('Reach maximum limit!') }
    } )
    .then( ... )
    .catch( ... );

External links

License

ckeditor5-iswordcount 5 is an Open Source plugin