Skip Navigation

[Résolu] Previous ticket re character count (FOR CHRISTIAN PLEASE)

This support ticket is created Il y a 7 années et 1 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par julieP Il y a 7 années et 1 mois.

Assisté par: Christian Cox.

Auteur
Publications
#580815

Hi Christian

In this ticket https://toolset.com/forums/topic/how-do-i-add-a-character-counter/ you kindly provided code required to restrict the number of characters a user can add to single line and textarea fields.

I've used the same code on a WYSIWYG field and noticed that the character count the user sees only counts down if they enter text on the 'text' (html) tab; it doesn't count down if they enter text on the 'visual' tab.

Is there a way of adapting the code to work for both tabs on a WYSIWYG field please?

Thank you.

#580891

Sorry, there's not a simple way to apply this code in that context, because of how markup is added to the contents of the Visual editor. At this time, the counting mechanism I provided here is limited to the Text panel only.

#582007

Hi Christian

OK - thanks for confirming.