nodel icon indicating copy to clipboard operation
nodel copied to clipboard

Add New node from Clipboard

Open justparking opened this issue 3 years ago • 3 comments

This would be a really useful feature.

Being able to create a node from contents of the clipboard from here: image

It would be good to be able to "Copy into Clipboard" too in a similar way many online services are starting to offer, e.g. github: image

justparking avatar Feb 23 '22 03:02 justparking

For security reasons, it is tricky to get contents from clipboard of the system. According to my understanding, there are 2 ways to get data from clipboard.

Please advise me.

morimoriysmoon avatar Mar 03 '22 04:03 morimoriysmoon

I think document.execCommand('paste') is a non-starter, which leaves just the second option. We might not always have a secure context but is it possible to show UI for this depending on whether or not we do?

tommy-gilligan avatar Oct 25 '22 10:10 tommy-gilligan

I'm still keen on this and I consider it a genuine time saver.

I think an option is to simply have a collapsed textboxes where the context of the clipboard can be pasted. I wouldn't even both about code formatting, simply a place to dump text.

And adding a Copy button on the script editor would be helpful too (see my screenshot above).

justparking avatar Nov 24 '22 09:11 justparking