@kalem-editor/plugin-word-count
v1.0.0
Published
Kalem plugin: word count, character count and reading time
Maintainers
Readme
@kalem-editor/plugin-word-count
Kalem plugin: word count, character count and reading time.
Part of Kalem — a WYSIWYG editor for people who don't know Markdown, that saves Markdown.
npm i @kalem-editor/plugin-word-countimport { wordCountPlugin } from '@kalem-editor/plugin-word-count';
import '@kalem-editor/themes/plugin-word-count.css';
editor.addPlugin(
wordCountPlugin({ container: document.getElementById('status') }),
);Words, characters and reading time, counted with Intl.Segmenter in the document's language. Markdown markers aren't counted.
Documentation, guides and the full API: see the Kalem repository.
License
MIT
