monaco-react icon indicating copy to clipboard operation
monaco-react copied to clipboard

Right-click menu, copy and paste does not work

Open xuoutput opened this issue 3 years ago • 3 comments

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

xuoutput avatar Mar 17 '21 12:03 xuoutput

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.

suren-atoyan avatar Mar 17 '21 20:03 suren-atoyan

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

xuoutput avatar Mar 18 '21 07:03 xuoutput

Hi @xuoutput I think that happens because your browser does not have permissions to get the clipboard information Screenshot 2021-08-16 150647

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.

Xoffio avatar Aug 16 '21 19:08 Xoffio

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

suren-atoyan avatar Sep 28 '22 03:09 suren-atoyan

I am closing this, but feel free to re-open it if it doesn't work in other places too.

suren-atoyan avatar Sep 28 '22 03:09 suren-atoyan