monaco-react
monaco-react copied to clipboard
Right-click menu, copy and paste does not work
Describe the bug
Right-click menu, copy and paste does not work
To Reproduce
https://codesandbox.io/s/monaco-editorreact---get-value-1hzz8
Expected behavior fix copy and paste
https://user-images.githubusercontent.com/13118722/111533546-55cd1780-8780-11eb-9cca-657b7218dfd3.mov
I reckon it's related to your environment. Could you please check it in incognito mode? Maybe you have some specific extension that prevents mentioned actions.
https://user-images.githubusercontent.com/16385443/111587864-bc444b00-87fd-11eb-9087-d1027bdf1901.mov
I mean to use the right-click menu, not the shortcut keys(ctrl+c, ctrl+v)@suren-atoyan
Hi @xuoutput I think that happens because your browser does not have permissions to get the clipboard information

Maybe they asked you before and you clicked Block?
You can try to open it form a incognito windows and see if they ask you. If so then delete the configuration of that page in your browser.
I hope that helps. I don't think is monaco-react.
@xuoutput I can confirm @Xoffio thesis. If you check it in the monaco-react website or monaco-editor playground it will ask permission for this and after gaining that permission it will work as expected. For some reason, it doesn't ask in the codesandbox.
I am closing this, but feel free to re-open it if it doesn't work in other places too.