Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add New node from Clipboard #233

Open
justparking opened this issue Feb 23, 2022 · 3 comments
Open

Add New node from Clipboard #233

justparking opened this issue Feb 23, 2022 · 3 comments

Comments

@justparking
Copy link
Contributor

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 justparking changed the title Add New node from Clipboard contents Add New node from Clipboard Feb 23, 2022
@morimoriysmoon
Copy link
Contributor

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.

@tommy-gilligan
Copy link

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?

@justparking
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants