You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 21, 2025. It is now read-only.
I'm trying to implement a feature where users can paste content as plain text, effectively stripping any formatting from the pasted content.
My goal is to:
I've been looking into the paste event and the clipboardData object, specifically the getData('text/plain') method. I've tried but not working.
Could anyone provide guidance or examples on how to properly detect the paste event and insert the plain text content into ?
Any help or pointers in the right direction would be greatly appreciated!
Thank you.