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

Update InputfieldTextLength.js to work with InputfieldTinyMCE #2032

Open
elabx opened this issue Jan 30, 2025 · 2 comments
Open

Update InputfieldTextLength.js to work with InputfieldTinyMCE #2032

elabx opened this issue Jan 30, 2025 · 2 comments

Comments

@elabx
Copy link

elabx commented Jan 30, 2025

Currently the word count is not updated while typing on the TinyMCE editor as it is now with CKEditor. Also, while testing TinyMCE's word count, it seems to throw a different number which seems to give a better estimate, here is a norred down example I made:

Image

Code is:

Image

@ryancramerdesign
Copy link
Member

@elabx Since TinyMCE has the word count built in, is there any reason to use the InputfieldTextLength version? The InputfieldTextLength is really more intended for plain text fields rather than rich text. So I'm wondering if maybe the best bet is just to disable the option from being selected for TinyMCE?

@elabx
Copy link
Author

elabx commented Feb 6, 2025

I agree! Not sure if there is any other backend validation for this?

Maybe it would be nice to flag the Inputfield with an error, like the Input character limit does. Although this would have to work with words not characters? Something I liked about the previous counter is that it gave live feedback about reaching a character count limit. I think it showed the limit in red?

I guess TinyMCE could write it's count to a hidden input or similar but unfortunately I cannot find any docs about customizing the wordcount Tiny plugin.

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

No branches or pull requests

3 participants