-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wordcount plugin #1301
Comments
I need the word/character count plugin to limit the user to 7000 characters. Something similar to the word count plugin available for CKEditor 4 - https://ckeditor.com/cke4/addon/wordcount |
Our customers asks explizit for such a functionality - so we need it :P |
I need it too :) |
We need this functionality too. We're currently using the word count plugin in ckeditor 4 to show the count of paragraphs, words, & characters, & it would be great to have this feature available in ckeditor 5 |
Is it still an open issue? Or we have a solution for it now? We are trying to create a dynamic template for creating multiple choice questions where we have to restrict user by characters for the 'Options' field. |
@venkateshwarans thank you for explaining your use case. Yes, the issue is still open and seeing the 👍 under it makes it quite probable that we'll handle it at some point. Unfortunately there is no ETA for it yet as we scheduled many things already. If you'd like to speed things up and sponsor the development of the plugin, then please contact us. If you'd like to work on the plugin by yourself, then sharing with others a link to the repository in a comment may help, maybe other interested users would like to help somehow once you provide some starting point. |
I scan through some word count features and I see some different approach in each of them. There are few things worth considering:
|
@msamsel the unicode has some preatty neat article about detecting word boundaries - maybe it could be taken into consideration. Also there's a algorithm to skip words in Edit: For future me: Word segmenation in Unicode. |
I've provide specification for the plugin in: |
Feature: Introduce word count feature. Closes #1. Closes ckeditor/ckeditor5#1301.
This feature recently was merged to the Basic configuration should looks something like that: ClassicEditor
.create( document.querySelector( '#editor' ), {
// Configuration details.
} )
.then( editor => {
const wordCountPlugin = editor.plugins.get( 'WordCount' );
// Your custom element where the word count should be applied to:
const wordCountWrapper = document.getElementById( 'word-count' );
wordCountWrapper.appendChild( wordCountPlugin.wordCountContainer );
} )
.catch( ... ); Or you can just observe More info will be available in the docs. |
<script src="https://cdn.ckeditor.com/ckeditor5/11.1.1/classic/ckeditor.js"></script>
its not worked for me after napm save ? can any one send me steps to display character count for ckeditor 5th version. |
Please how can I use this in react app? |
i used this approach:
|
It looks like people are looking for "word count" or "character count" in our documentation and can't find it. I'm creating this issue to track demand for such a plugin. If anyone is looking for such plugin, add 👍. Also please write a comment what's your use case for it, so that we could better understand what's the purpose of this plugin.
The text was updated successfully, but these errors were encountered: