etherpad-lite icon indicating copy to clipboard operation
etherpad-lite copied to clipboard

Copy/paste bug

Open lofrequency opened this issue 11 years ago • 18 comments

I'm working on a script, so when I go to copy and paste what I've written already, it all counts as a single line and scrollbars don't appear. Also, I cannot change the text style of anything that this happens to. Sometimes I can get it to treat the pasted text normally if I create a bunch of lines by repeatedly hitting enter, and paste the text into that, but that doesn't always work.

lofrequency avatar Aug 04 '15 05:08 lofrequency

I have the same problem. When I copy and paste a body of text, I lose all newlines and formatting of any kind.

niedzielski avatar Aug 14 '15 16:08 niedzielski

same here

bjonnh avatar Sep 15 '15 19:09 bjonnh

same here

bujatt avatar Nov 26 '15 16:11 bujatt

same here. version 1.5.7

Mgldvd avatar Jan 04 '16 22:01 Mgldvd

What browser are you copying FROM? Where are you pasting TO?

JohnMcLear avatar May 04 '16 21:05 JohnMcLear

Same here.

Copying from: Firefox 48.0 Chrome 53.0.2785.89 Chromium 52.0.2743.116 Evolution 3.12.9 Gedit 3.14.0

Pasting to all the browsers above fails.

Copying from icedove 45.2.0, works just nice.

pabelenda avatar Sep 01 '16 09:09 pabelenda

This is a quite serious issue, tbh. It could be duplicated, though. See #2625

pabelenda avatar Sep 06 '16 08:09 pabelenda

Do you need me to do any further testing on this? I am willing to see this fixed on my etherpad deployment :-)

pabelenda avatar Oct 03 '16 09:10 pabelenda

Same here. Firefox ESR 45.4.0 (Debian 8). What could I try, or how can I help to fix it ?

Wikinaut avatar Oct 26 '16 08:10 Wikinaut

Same here.
Google Chrome Linux Version 55.0.2883.75 with Firefox 50.1.0 it's working.

johamha avatar Jan 12 '17 11:01 johamha

I can still reproduce it in Epiphany 3.22, but it seems to be gone from FF 50 or Chromium 55.

psaavedra avatar Feb 02 '17 06:02 psaavedra

Looks like the problem in Safari and epiphany is originated by the workaround introduced in #1766. I just reverted this one and the copy&paste works well now in Epiphany:

--- ./etherpad-lite/node_modules/ep_etherpad-lite/static/css/iframe_editor.css.orig	2017-02-02 10:21:45.201005469 +0100
+++ ./etherpad-lite/node_modules/ep_etherpad-lite/static/css/iframe_editor.css	2017-02-02 10:23:02.612889597 +0100
@@ -120,8 +120,6 @@
 }
 
- body.doesWrap:not(.noprewrap) > div{
-  /* Related to #1766 */
-  white-space: pre-wrap;
- }
 
 #innerdocbody {

psaavedra avatar Feb 02 '17 09:02 psaavedra

Same problem here in Firefox 56.0.1 on Windows -- makes Gist painful to use when it won't preserve newlines from plain text.

danzek avatar Oct 19 '17 15:10 danzek

Same problem with Firefox 56.0 on Fedora. But Chrome 62.0 works fine!

amodig avatar Nov 01 '17 18:11 amodig

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 04 '20 22:06 stale[bot]

On etherpad 1.8.3, apparently there seems to be a difference between pasting with middle mouse button, which squashes all lines into one, and pasting with Ctrl-V, which does the right thing.

rohieb avatar Jun 09 '20 12:06 rohieb

@rohieb afaik it's fixed in develop

JohnMcLear avatar Jun 09 '20 15:06 JohnMcLear

ctl-shift-v solved this problem for me in firefox 79 on Ubuntu 18

alignwaivers avatar Sep 13 '20 08:09 alignwaivers