qvitter
qvitter copied to clipboard
pasting with mobile firefox
Way to reproduce with Firefox on Android
- Copy som text
- On quitter.se click the compose a new notice link with a pen icon
- In the white area where text can be written, long-press so the menu with the paste button is displayed
- Click paste Expected: the copied text is added in the text area and can be seen Actually: no text is seen, char counter still says 140 but sometimes the pasted text can be selected as if it were there but with white color on white background.
I'm experiencing the same with Safari on iOS (quitter.no, iOS 9.2 - latest). Since there are no working apps for GNU Social on iOS, this bug makes it hard to share links on iPhone and iPad.
In this queet I pasted a link to this issue: https://quitter.no/notice/928300
(Also I can't move the cursor to edit a former part of the queet while I'm authoring it. In the queet above, I marked "på" hit delete and typed "on", but it didn't show while I typed nor after posting.)
thanks for the report! i don't have access to any ios device, but when i get hold of one i'll try it and see if i can fix it
No problem. It was the least I could do.
I tested this on Chromium (Ubuntu Desktop) now. If I simulate iPhone 5, long press the left mouse button and choose paste, I get the same bug. If I then inspect the element, the invisible, pasted text is there - right next to the text I typed in manually. There are no span tags separating it and it's dropped in the publish - so how it can be a part of the same html element, yet behave so different is beyond me.
Another strange thing is that if I right click and choose paste from the seemingly same menu, it works fine.
it must be some javascript event that isn't triggered, that qvitter uses to synch the syntax highlighted overlay element with the plain text element. i'll see if i can manage to simulate like that too!