pqina / filepond

🌊 A flexible and fun JavaScript file upload library
https://pqina.nl/filepond
MIT License
15.18k stars 828 forks source link

[Feature] Ignore custom text field editors pasting formatted text #991

Open barremob opened 3 months ago

barremob commented 3 months ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe.

When pasting formatted text in a text editor such as Trix editor it will also upload an image.

Describe the solution you'd like

Adding the tags to the ignore list as done with textarea and input. #493

Describe alternatives you've considered

Adding an option to provide a custom tag to add in the ignore list. This would be more flexible when other editors are used.

rikschennink commented 2 weeks ago

Perhaps you can call stopPropagation() on the paste event when captured in the textarea?