Reddit comments input textbox shows duplicate text after pasteing
Reddit comments textbox shows duplicate text after pasteing When creating a comment (new or reply), the input textbox shows duplicate text. So what ever is pasted, it appears twice. If I post the comment anyway, only one copy of the text appears in the posted comment. It only seems to happen if I paste more than one line of text so maybe the CRLF at the end of line one has something to do with it. See attached image.
I tried the same operation with Chrome, and it does not have this duplicate text problem. So I'm guessing it some problem with the input textbox implementation in firefox.
Is this a known problem? Anyone else seeing this?
firefox 88.0.1 (latest), windows 10 laptop
Wybrane rozwiązanie
Not fixed, but I found the source of the problem. Not a firefox issue. In reddit, when you switch edit mode to "Markdown Mode" it works fine. If you go back to their "Fancy Pants Editor" the problem is back.
So It's the scripts that run the reddit editor. Thanks to all for your suggestions and help!
Przeczytaj tę odpowiedź w całym kontekście 👍 0Wszystkie odpowiedzi (7)
Where did you copy this text to the clipboard ?
Does this also happen if you first paste the text in a plain text are like this forum and then do a Copy & Paste again in Reddit.
Start Firefox in Troubleshoot Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration or userChrome.css is causing the problem.
- switch to the DEFAULT theme: "3-bar" menu button or Tools -> Add-ons -> Themes
- do NOT click the "Refresh Firefox" button on the Troubleshoot Mode start window
Thanks for the reply. Started in firefox Troubleshoot mode. Confirmed that I am using the DEFAULT theme. It still happens. I copy the text from windows Notepad app to windows clipboard. Then paste the text into the Reddit comment field.
I can paste the text into the comment textbox on this site fine. So that is weird unless the firefox website uses a different type of input textbox web element.
I had so much trouble pasting on reddit a day or so ago that I gave up. At the time, I thought it was misinterpreting an element of the code. It pasted two lines of code, then a comment followed by all the code (including the two lines already posted). I double-checked the clipboard entry and it was fine. Using a code box or quotation box didn't help. Also, if I used the backspace key, I ended up somewhere else on the page. If I selected part of the text and used the delete key, everything I had pasted was deleted. Ironically, these issues occurred on the Firefox sub.
I use the older design of Reddit which doesn't have a fancy editor, so I don't have personal experience with this issue.
Pasting problems in scripted editors are sometimes caused by disabling sites from detecting clipboard events. You could check here:
(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.
(2) In the search box in the page, type or paste dom.event.clipboardevents.enabled and pause while the list is filtered
(3) If the preference is bolded and has a value of false, double-click it to restore the default value of true
If you changed that, any difference?
jscher2000 Thanks for the suggestion. I tried that and it doesn't make a difference. Same problem whether I set dom.event.clipboardevents.enabled to true or false.
I'm starting to think this may be a reddit error instead of firefox. Even though chome doesn't show this problem, it's possible that reddit uses different edit scripts depending on browser.
I am currently on the new design for Reddit.
Wybrane rozwiązanie
Not fixed, but I found the source of the problem. Not a firefox issue. In reddit, when you switch edit mode to "Markdown Mode" it works fine. If you go back to their "Fancy Pants Editor" the problem is back.
So It's the scripts that run the reddit editor. Thanks to all for your suggestions and help!