Replies: 1 comment
-
Facing the same issue. I'm trying to block copy/paste. I tried this it triggers when copy/paste but doesn't block.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to restrict pasting in this editor.
In the case of other textArea or Input, we can either use the inbuilt onPaste property or add an eventListener to prevent the default behaviour of pasting into the input.
How do I achieve this for MDXEditor ?
Here is an event listener that I tried to implement,
I am using the useRef hook to pin point the editor.
Beta Was this translation helpful? Give feedback.
All reactions