Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Reddit comments input textbox shows duplicate text after pasteing

  • 7 trả lời
  • 1 gặp vấn đề này
  • 1 lượt xem
  • Trả lời mới nhất được viết bởi Windfall

more options

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

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
Đính kèm ảnh chụp màn hình

Giải pháp được chọn

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!

Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (7)

more options

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
more options

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.

more options

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.

more options

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?

more options

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.

more options
more options

Giải pháp được chọn

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!