# Monaco editor, missing "Paste" command

**URL:** https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283
**Category:** General
**Created:** [3 August 2021 20:14 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283 "2021-08-03T20:14:20Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)
#### Post date: [3 August 2021 20:14 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/1 "2021-08-03T20:14:20Z")

</div>

If you want to Cut/Paste or Copy/Paste in the Monaco editor, you will find that the "Paste" option is missing in the "Right-Mouse-Click" menu.

If you use "Google" you will find it has been implemented about a year ago, but you will find a lot of discussions as well.

The keyboard shortcut "Ctrl + v" works fine and has to be used.

Any way to add it?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [3 August 2021 21:06 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/2 "2021-08-03T21:06:35Z")

</div>

What OS and browser are you using?

Windows 10 , chrome...  
 ![8IJvZwkP3X](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/f/6f5f3750f5fb0d5d903d35adc00e81c424ed35b8.gif)

RPi 3b chromium  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/5/25a5e0dcf8d028ea6048889ae879637fa5018223.png)

---

<div class="post-metadata">

### Author: ![HaroldPetersInskipp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/haroldpetersinskipp/32/42319_2.png) [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)
#### Post date: [3 August 2021 21:39 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/3 "2021-08-03T21:39:24Z")

</div>

![paste](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/4/d464de47362ae5172db143ee5d5b0cabbaf107f1.png)

I'm having this problem as well. Accessing it through Firefox 90.0.2 (64-bit) on a Windows 10 PC, but running node-red on various devices.

---

<div class="post-metadata">

### Author: ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)
#### Post date: [3 August 2021 21:40 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/4 "2021-08-03T21:40:20Z")

</div>

On windows 8, firefox it doesn't work either.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [3 August 2021 21:41 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/5 "2021-08-03T21:41:59Z")

</div>

So this looks like a firefox issue.

There is a plugin

> **[Paste for Monaco – Get this Extension for 🦊 Firefox (en-GB)](https://addons.mozilla.org/en-GB/firefox/addon/paste-for-monaco/)**
>
> Download Paste for Monaco for Firefox. Brings the context menu option paste back to a few sites that use Monaco.

But I cant vouch for it (dont use ff)

EDIT...

@gerry @FireWizard52 @HaroldPetersInskipp  
Does the context menu cut/copy/paste operations work in the [monaco playground](https://microsoft.github.io/monaco-editor/playground.html)?

---

<div class="post-metadata">

### Author: ![HaroldPetersInskipp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/haroldpetersinskipp/32/42319_2.png) [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)
#### Post date: [3 August 2021 21:57 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/6 "2021-08-03T21:57:52Z")

</div>

It's exactly the same in monaco playground.

---

<div class="post-metadata">

### Author: ![greenembrace](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greenembrace/32/42414_2.png) [@greenembrace](https://discourse.nodered.org/u/greenembrace)
#### Post date: [3 August 2021 22:32 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/7 "2021-08-03T22:32:16Z")

</div>

I tried Win 10 using Firefox 90.0.2 , Edge 92.0.902.62 and Chrome 92.0.4515.131 none have paste.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [3 August 2021 22:33 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/8 "2021-08-03T22:33:17Z")

</div>

> [@greenembrace](#):
>
> Edge 92.0.902.62 and Chrome 92.0.4515.131 none have paste.

Did you copy something first?

---

<div class="post-metadata">

### Author: ![greenembrace](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greenembrace/32/42414_2.png) [@greenembrace](https://discourse.nodered.org/u/greenembrace)
#### Post date: [3 August 2021 22:34 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/9 "2021-08-03T22:34:36Z")

</div>

Yes in all three cases

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [3 August 2021 22:35 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/10 "2021-08-03T22:35:30Z")

</div>

Most odd. Does that include the playground?

---

<div class="post-metadata">

### Author: ![greenembrace](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greenembrace/32/42414_2.png) [@greenembrace](https://discourse.nodered.org/u/greenembrace)
#### Post date: [3 August 2021 22:38 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/11 "2021-08-03T22:38:39Z")

</div>

Playground works in Chrome and Edge but not Firefox

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [3 August 2021 22:55 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/12 "2021-08-03T22:55:54Z")

</div>

In node-red, where the context menu paste command doesn't work for Chrome and edge, are you connected to localhost or a remote instance of node-red? Is it http or Https?

---

<div class="post-metadata">

### Author: ![greenembrace](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greenembrace/32/42414_2.png) [@greenembrace](https://discourse.nodered.org/u/greenembrace)
#### Post date: [4 August 2021 00:04 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/13 "2021-08-04T00:04:27Z")

</div>

Remote Host, but on local server so have not used https.

---

<div class="post-metadata">

### Author: ![FireWizard52](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/firewizard52/32/34508_2.png) [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)
#### Post date: [4 August 2021 15:04 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/14 "2021-08-04T15:04:32Z")

</div>

Hi,

I tested on several browsers and operating systems.  
Find the results below:

1. Linux OS (PCLinuxOS, kernel 5.13.7) , Firefox 90.0.2 (64-bit) ==\> NO Paste command.
2. Linux OS (PCLinuxOS, kernel 5.13.7) , Waterfox 2021.07==\> NO "Right Click Mouse" Menu
3. Linux OS (PCLinuxOS, kernel 5.13.7) , Chrome 92.0.4515.131 (Official Build) (64-bit) ==\> NO Paste command.
4. Windows 10, Edge ==\> NO Paste command.
5. Windows 10, Firefox 90.0.2 (64-bit) ==\> NO Paste command.

> Does the context menu cut/copy/paste operations work in the [monaco playground]

1. Linux OS (PCLinuxOS, kernel 5.13.7) , Firefox 90.0.2 (64-bit) ==\> NO Paste command.
2. Linux OS (PCLinuxOS, kernel 5.13.7) , Chrome 92.0.4515.131 (Official Build) (64-bit) ==\> YES

I found the issue is already over 4 years old:

See: [Edit actions are available only in IE · Issue #391 · microsoft/monaco-editor · GitHub](https://github.com/microsoft/monaco-editor/issues/391)

> In all browsers, Ctrl+X, Ctrl+C and Ctrl+V do what they should do without any prompts.

#### IE11

- the context menu will contain Cut, Copy and Paste
- when running from `file://` or from `http://localhost` , clicking in the context menu works without any prompts.
- when running from a different origin, clicking in the context menu will prompt and ask the user if they want to grant clipboard access

#### Edge, Chrome and Firefox

- the context menu will contain Cut and Copy, and clicking in the context menu works without any prompts.
- there is no way to trigger paste from a click handler in these browsers.

I didn´t find a solution so far and as it is Microsoft, I do not have much confidence that it will ever work on a non-microsoft system,

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [3 October 2021 15:04 UTC](https://discourse.nodered.org/t/monaco-editor-missing-paste-command/49283/15 "2021-10-03T15:04:33Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
