Forums

CF8 - 8.0.17 - TinyMCE - Count Chars

rbock 22 Nov, 2023
Hello Max... For example, I need a maximum of 600 characters in a text field with formatting. For this I count via Valid Function with "strlen($value);" all characters. That works too. (Just not when a trigger is set. I already told you that.)

However, it is not particularly user-friendly.

Insert plugin is blocked by the browser.
Added the following features, am happy with it: invalid_elements:"div,p,span",entity_encoding:"raw"

Allowed are bold, list, num list.

Now I want to show TinyMCE's char counter again. (So far hidden by CSS.)

How do I change this so that Word is not counted by default Char?

How do I ensure that formatting is counted? (<p><strong>12345</strong></p> -> My Count: 29 | TinyMCE Count: 5)
rbock 22 Nov, 2023
How can I use the TinYMCE text limitation? Unfortunately, my counting using PHP code fails with the formatting...

For example, I need 600 characters (formatting and spaces should not be counted).
You need to login to be able to post a reply.