[AP] Character Counter

[AP] Character Counter 1.2.0

No permission to download
apathy updated [AP] Character Counter with a new update entry:

1.2.0

  • Remove duplicate permission (double check to make sure "Forum permissions: Can view character / word counter" is correctly set)
  • Count words instead of whitespaces
  • Create "Display counter in the following locations" admin option
  • Create style properties for restyling & relocating the counter within the editor

Read the rest of this update entry...
 
Hi, Thank you for the awesome add-on.

seems it is not counting correctly.

I typed 20 words but it is only count 17 !.
2023-08-08_10h43_35.png
 

Thank you so much!

Hi, Thank you for the awesome add-on.

seems it is not counting correctly.

I typed 20 words but it is only count 17 !.
View attachment 289598

Thank you so much! I made an attempt, but it didn't turn out as well as yours.

I lack experience in this area. Would you be able to share your CSS code with me, please?

I genuinely appreciate it!
 
Hi, Thank you for the awesome add-on.

seems it is not counting correctly.

I typed 20 words but it is only count 17 !.
Not had the time to investigate just yet (it was a while ago I wrote this update and only got to test it recently), but from what i remember the Froala editor XF uses doesn't actually output a post like

Code:
TEST TEST TEST
TEST TEST TEST

It either looks like (recalling from memory here so maybe I'm wrong):

Code:
TEST TEST TESTTEST TEST TEST

OR

Code:
<p>TEST TEST TEST</p>
<p>TEST TEST TEST</p>

if the way it outputs the text is like the former example then I don't think there's anything I can do, because there's no way for the counter to tell where the line breaks are and count the two words around it separately.
If it's the latter, with <p> tags, then it should be easier to correct.
 
After installed can't type anything into Quick Reply editor box in toggle BB code mode
Have you any other editor-related addons installed? Are there any errors appearing in your browser console (CTRL+Shift+K for firefox, not sure about chrome)
 
After installed can't type anything into Quick Reply editor box in toggle BB code mode
Interesting. I just tested it and I can type in the box but the counter doesn't work in BB code mode.

I'm on Firefox, and I tested two different Firefox browsers. I don't have other editor-related addons.

I have some warnings in CTRL+Shift+K, but no errors.
 
Interesting. I just tested it and I can type in the box but the counter doesn't work in BB code mode.

I'm on Firefox, and I tested two different Firefox browsers. I don't have other editor-related addons.

I have some warnings in CTRL+Shift+K, but no errors.
Indeed, after a quick test with the completely default settings I have the same experience as you - in regular editor mode I can both type & have my characters counted, if I'm in BbCode mode I can still type but the counter will not refresh until I swap back to regular editor mode.
I've not gotten a chance to test the other options but I wonder if (for instance) the word counter option is causing the inability to type at all in BbCode mode.
 
Back
Top Bottom