Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How To Disable Copy Paste in Editor? #650

Open
SakshamSahgal opened this issue Apr 27, 2024 · 3 comments
Open

How To Disable Copy Paste in Editor? #650

SakshamSahgal opened this issue Apr 27, 2024 · 3 comments

Comments

@SakshamSahgal
Copy link

SakshamSahgal commented Apr 27, 2024

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

@SakshamSahgal SakshamSahgal changed the title How To Disable Copy Paste? How To Disable Copy Paste in Editor? Apr 27, 2024
@jaywcjlove
Copy link
Member

@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

@SakshamSahgal
Copy link
Author

@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.

@jaywcjlove
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants