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

Compose tweet box on Twitter gets destylized and confused #7

Open
f-prime opened this issue Feb 21, 2020 · 5 comments
Open

Compose tweet box on Twitter gets destylized and confused #7

f-prime opened this issue Feb 21, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@f-prime
Copy link
Contributor

f-prime commented Feb 21, 2020

Bug

Pasting stylized text while destylize is enabled breaks delete/backspace functionality. I noticed this when I went to paste unicode cursive text into Twitter. It got destylized, but when I went to edit the destylized text (deleting characters) the cursor would get pushed to the beginning of the sentence and the characters that would get deleted would be in the middle of the sentence.

How to recreate

  1. I used Cursive Text Generator (https://lingojam.com/CursiveTextGenerator) to generate the stylized text

  2. Went to twitter and created a new tweet

  3. Pasted stylized text from Cursive Text Generator with destylize enabled

  4. Tried to edit the destylized characters

@wmww
Copy link
Owner

wmww commented Feb 21, 2020

That is indeed odd

@wmww
Copy link
Owner

wmww commented Feb 21, 2020

[CW: stylized text]

𝓟𝓪𝓼𝓽𝓲𝓷𝓰 𝓲𝓷𝓽𝓸 𝓖𝓲𝓽𝓗𝓾𝓫 𝓱𝓪𝓼 𝓷𝓸 𝓼𝓾𝓬𝓱 𝓲𝓼𝓼𝓾𝓮

@wmww
Copy link
Owner

wmww commented Feb 21, 2020

Pasting into Twitter, copying what is there, refreshing and then pasting again results in non-stylized text without weirdness. I'm guessing twitter has a script doing strange things to the input field, and it gets very confused when Destylize changes it up

@f-prime
Copy link
Contributor Author

f-prime commented Feb 21, 2020

I wonder if it's even a good idea to destylize text in the input fields. Seems like it applies more to content other people have published. So it could be solved by just ignoring input fields all together.

@wmww
Copy link
Owner

wmww commented Feb 21, 2020

I already explicitly ignore input fields (that's why pasting into GH is fine). I've now checked, and Twitter seems to be rolling its own text composition element. I believe the appropriate solution would be to blacklist the compose tweet area on twitter.com.

@wmww wmww changed the title Deleting destylized text does not function properly Compose tweet box on Twitter gets destylized and confused Feb 21, 2020
@wmww wmww added the bug Something isn't working label Feb 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants