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

Can't always paste text (e.g. Slack) #741

Closed
Ambrevar opened this issue May 19, 2020 · 13 comments
Closed

Can't always paste text (e.g. Slack) #741

Ambrevar opened this issue May 19, 2020 · 13 comments
Labels
2-series Related to releases whose major version is 2.

Comments

@Ambrevar
Copy link
Member

Since we've disabled C-v and 'paste' because it hangs (#593) we can only paste using some Javascript which inserts text into input / text tags.

This does not work everywhere however, e.g. in the Slack message area.
Could it be possible that it's neither an input nor a text tag? What are the other editable HTML elements?

@Ambrevar Ambrevar added the 2-series Related to releases whose major version is 2. label May 19, 2020
@jmercouris
Copy link
Member

I cannot think off the top of my head what it would be if not for those... you can open the inspector in slack and see what it is?

@Ambrevar
Copy link
Member Author

Ambrevar commented May 19, 2020 via email

@jmercouris
Copy link
Member

jmercouris commented May 19, 2020

First open the inspector, then right click on the element in question, and it will show you in the modal popup an option to focus on that inspector. Mine is in Greek, so I don't know what the command is
:-D

@Ambrevar
Copy link
Member Author

Ambrevar commented May 19, 2020 via email

@jmercouris
Copy link
Member

It can focus on sub elements, I’ve used that functionality before

@Ambrevar
Copy link
Member Author

Ambrevar commented May 19, 2020 via email

@Ambrevar
Copy link
Member Author

Ambrevar commented May 19, 2020 via email

@jmercouris
Copy link
Member

contenteditable is a good attribute to check for, I don't know if it is automatically set for textarea and inputs (i.e. what will the JS test return if you try: textarea.contenteditable), but that works

@Ambrevar
Copy link
Member Author

Ambrevar commented May 19, 2020 via email

@jmercouris
Copy link
Member

perhaps it is trying to retrieve an attribute that does not exist, maybe it should be a list of TRY rather than an OR

@Ambrevar
Copy link
Member Author

Ambrevar commented May 20, 2020 via email

@jmercouris
Copy link
Member

it is now possible to paste using the native paste (since it has been re-enabled).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2-series Related to releases whose major version is 2.
Development

No branches or pull requests

2 participants