Last modified: 2013-04-19 18:34:39 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 T46701, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44701 - VisualEditor: Copy and paste at end of text loses some of copied text on save (Parsoid issue?)
VisualEditor: Copy and paste at end of text loses some of copied text on save...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2013-04-29
Assigned To: James Forrester
:
Depends on:
Blocks: 44926
  Show dependency treegraph
 
Reported: 2013-02-06 03:44 UTC by Phil Kirkham
Modified: 2013-04-19 18:34 UTC (History)
4 users (show)

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


Attachments
Page after cut and paste of 'a b c' only showing the 'a' (14.90 KB, image/png)
2013-02-06 03:44 UTC, Phil Kirkham
Details

Description Phil Kirkham 2013-02-06 03:44:33 UTC
Created attachment 11735 [details]
Page after cut and paste of 'a b c' only showing the 'a'

Created a simple file
a
b
c

Copied all the text, placed the cursor after the 'c' and pasted it
The 'a' from the copy was pasted, the 'b' and 'c' were lost
Comment 1 James Forrester 2013-02-07 04:12:55 UTC
Phil, what browser were you using? I'm afraid I cannot reproduce on Chrome/Mac or Safari/Mac; Firefox has wider issues (that mean I can't copy-and-paste anything; to follow-up).
Comment 2 Phil Kirkham 2013-02-07 04:18:16 UTC
This was Safari/Mac - I have just tried it on Chrome/Mac and was able to reproduce

Just to confirm the steps
a
b
c

Save this - this is 3 separate lines
Edit
Copy all the text, paste after the 'c'
Comment 3 Christian Williams 2013-02-20 23:01:10 UTC
I think this is a serialization bug. The linear model shows the full data after paste:  
[
Object
, "a", 
Object
, 
Object
, "b", 
Object
, 
Object
, "c", "a", 
Object
, 
Object
, "b", 
Object
, 
Object
, "c", 
Object
]
but it's not correctly saving. Testing here: http://www.mediawiki.org/wiki/VisualEditor:CopyPaste
Comment 4 James Forrester 2013-02-20 23:40:05 UTC
Ah, right. This is, I think, a Parsoid-related bug, which should get fixed when the new version of Parsoid can be deployed; assigning to myself for review when we get that out.
Comment 5 James Forrester 2013-04-19 18:34:39 UTC
This is now fixed given the Parsoid update. Sorry for the delay.

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


Navigation
Links