Last modified: 2013-12-19 20:17:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60347, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58347 - VisualEditor: CE adds linebreaks when pasting into empty lines
VisualEditor: CE adds linebreaks when pasting into empty lines
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2013-12-19
Assigned To: Ed Sanders
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-11 19:34 UTC by Rummana Yasmeen
Modified: 2013-12-19 20:17 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot (186.30 KB, image/png)
2013-12-11 19:55 UTC, Rummana Yasmeen
Details

Description Rummana Yasmeen 2013-12-11 19:34:18 UTC
Steps to reproduce:


1.Open the editor for a page which contains link

2.Copy it.

3.Paste it into a new line 

4.Save it

Observed Result:
The link is getting merged on to the end of the previous line
Comment 1 Rummana Yasmeen 2013-12-11 19:35:17 UTC
Test Environment: betalabs
Browser: Chrome Version 26.0.1410.65 
OS: MAC OS X 10. 8. 5 
Example Page:http://en.wikipedia.beta.wmflabs.org/w/index.php?title=11th_december
Comment 2 Rummana Yasmeen 2013-12-11 19:55:24 UTC
Created attachment 14062 [details]
Screenshot
Comment 3 Rummana Yasmeen 2013-12-11 20:21:14 UTC
Modification in steps to reproduce:

step 3 :paste it into a newline on another page or VE
Comment 4 Rummana Yasmeen 2013-12-11 20:43:23 UTC
Another issue which I think might be related with this, if not I will file separate bug:

Steps to reproduce:


1.Open the editor for a page 

2.Copy a text

3.Paste it into another page

4.Copy an image and paste it onto the next line

Observed Result:
The image does not gets pasted in the other VE.
Comment 5 Rummana Yasmeen 2013-12-16 16:01:04 UTC
The issue of link getting merged is still reproducible in betalabs:http://en.wikipedia.beta.wmflabs.org/wiki/December_16th
Comment 6 Rummana Yasmeen 2013-12-16 16:20:53 UTC
Modification in steps to reproduce:

1.Open the editor 
2.Copy a link or a text
3.Paste it into another VE
4.Observed that the cursor is automatically to the next line though you have not pressed Enter/return
5.Now paste the link or the text again in that position without pressing enter
6.Save the page

Observed Result:
The texts or the links are getting merged in the same line
Comment 7 Ed Sanders 2013-12-16 17:15:18 UTC
This latest version of the bug is known issue with CE in Chrome when pasting into a newline.
Comment 8 Gerrit Notification Bot 2013-12-16 18:25:12 UTC
Change 101905 had a related patch set uploaded by Esanders:
Strip trailing linebreaks on paste due to Chrome bug

https://gerrit.wikimedia.org/r/101905
Comment 9 Gerrit Notification Bot 2013-12-17 18:53:11 UTC
Change 101905 merged by jenkins-bot:
Strip trailing linebreaks on paste due to Chrome bug

https://gerrit.wikimedia.org/r/101905
Comment 10 Rummana Yasmeen 2013-12-17 20:05:33 UTC
I am still getting the issue of two links getting merged in one line after pressing enter after pasting the first link:
http://en.wikipedia.beta.wmflabs.org/wiki/December_17th
Comment 11 Ed Sanders 2013-12-19 15:15:05 UTC
Works for me in Chrome and Firefox. Please provide detailed instructions if you can reproduce.
Comment 12 Rummana Yasmeen 2013-12-19 15:55:26 UTC
Sorry, here are the detailed steps: 

1.Create a page "A" with three links in three consecutive lines.
2.Create another page "B" where you will copy these links to.
3.Copy the first and second link to "B"
4.Save it.
5.Reopen the editor.
6.Now copy the third link and paste it to the third line of "B"
7.Save it.

Observed Result:
The second and the third link in page B is getting merged.

Example Pages:

A:http://en.wikipedia.beta.wmflabs.org/wiki/19th_december_source?veaction=edit
B:http://en.wikipedia.beta.wmflabs.org/wiki/19th_destination
Comment 13 Rummana Yasmeen 2013-12-19 16:28:47 UTC
After these steps if you try copying a math function or a link on the third line of Page B , it will also get merged with the two merged links
Comment 14 Ed Sanders 2013-12-19 16:46:23 UTC
This is a new bug and something to do with Parsoid and Selser. Filed as bug 58695.
Comment 15 Rummana Yasmeen 2013-12-19 20:14:37 UTC
The original issue of this bug has been verified in test 2 with MediaWiki 1.23wmf8 
on page:https://test2.wikipedia.org/wiki/19th_december
Comment 16 Rummana Yasmeen 2013-12-19 20:17:40 UTC
*The fix for the original issue has been verified in test 2 with mediawiki 1.23wmf8*

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links