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
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,
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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