Skip to content
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

Enable word and character count on CKEditor5Fields #117

Closed
jsolly opened this issue Jan 20, 2023 · 1 comment
Closed

Enable word and character count on CKEditor5Fields #117

jsolly opened this issue Jan 20, 2023 · 1 comment

Comments

@jsolly
Copy link
Contributor

jsolly commented Jan 20, 2023

Context

I want to see the current character and word count while editing blog posts.
image

Ideal behavior

Word and Character count can be enabled by adding a configuration within CKEDITOR_5_CONFIGS.

Path Forward

I see a Word count and character count in the ckeditor5 docs.

There are two ways how you can inject the word count statistics into your page:

By using the WordCount#wordCountContainer property as shown in the example above.

By specifying where the word count feature should insert its container which can be done by using config.wordCount.container.

Would either of these methods be the way to implement this?

Things to consider

It might be nice to enable this on a container-by-container basis, but I am okay if enabling it inserts it into every CKEditor5Field.

I could probably pull this off with JS or HTMX, but it would be great if this could be native within ckeditor5.

@hvlads hvlads closed this as completed in 7b58c4b Jan 21, 2023
hvlads added a commit that referenced this issue Jan 21, 2023
resolve #117 add WordCount ckeditor5 plugin.
@hvlads
Copy link
Owner

hvlads commented Jan 21, 2023

Hi, this functionality will appear in the next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants