uiwjs/react-codemirror

How To Disable Copy Paste in Editor?

SakshamSahgal opened this issue · 13 comments

It seems that there is no way to disable copy paste in the editor : Link

@SakshamSahgal I don't understand what you mean, I don't know if the following method can solve your problem.

https://uiwjs.github.io/react-codemirror/#/extensions/events

@jaywcjlove I apologize if my initial inquiry wasn't clear. It seems there's no built-in option in @uiw/react-codemirror to disable copy-paste while allowing typing. Maybe adding a parameter to define this behavior could be beneficial.

The 'events' extension can achieve this, I think that's enough."