nodel
nodel copied to clipboard
Add New node from Clipboard
This would be a really useful feature.
Being able to create a node from contents of the clipboard from here:
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:
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.
- document.execCommand('paste') : disabled
- navigator.clipboard.readText() : only with secure context (E.g.> localhost or HTTPS)
Please advise me.
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?
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).