-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
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:
- Detect when a paste event occurs within the editor.
- Prevent the default paste behavior that includes formatting.
- Retrieve the plain text content from the clipboard.
- Insert this plain text into the editor at the current selected component.
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.
Metadata
Metadata
Assignees
Labels
No labels