verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
96 stars 73 forks source link

Multi-Line Form Word Limit Not Working #1840

Open thatONEjustin opened 6 months ago

thatONEjustin commented 6 months ago

Describe the bug

Text content entered into Multi Line Rich Text field with formatting support is generating extra hidden tags with additional style attributes and contributing to the input field's character limit.

2024-04-22_13:15:00 2024-04-22_13:16:11

above screenshots are of data in the backend

Steps to reproduce

  1. install craft + formie
  2. create craft form with a multiline text field
  3. change word limit to 1500
  4. enable rich text
  5. enter content

Form settings

Craft CMS version

4.8.4

Plugin version

2.1.12

Multi-site?

no

Additional context

everything tested so far has been from the CMS side. End-users originally reported the issue but we ran into it on the back end trying to debug.

engram-design commented 6 months ago

Those extra style tags certainly aren’t coming from Formie - they seem to be Tailwind (the —tw prefix).

I’ve been testing with Tailwind locally, and can’t seem to get that behaviour on my end. Are you pasting in content from somewhere?

thatONEjustin commented 6 months ago

no the style tags are being added to the field when we're saving the text field. anything going in during testing has been raw text data

engram-design commented 6 months ago

Hmm, I've also been testing on a multi-page form, where I'm entering text into that field, it saves, then I navigate to the previous page with the field, and the saved value isn't showing those classes. Anything you can do on your end to strip out whatever Tailwind might be doing on this? Or any custom JS?