Last modified: 2013-07-22 02:25:59 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 T53220, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51220 - VisualEditor: Cut and Pasting a section that contains an image truncates all the sections formatting after pasting it.
VisualEditor: Cut and Pasting a section that contains an image truncates all ...
Status: RESOLVED DUPLICATE of bug 33105
Product: VisualEditor
Classification: Unclassified
General (Other open bugs)
All All
: Unprioritized major
: ---
Assigned To: James Forrester
Depends on:
  Show dependency treegraph
Reported: 2013-07-12 06:35 UTC by Excirial
Modified: 2013-07-22 02:25 UTC (History)
5 users (show)

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


Description Excirial 2013-07-12 06:35:05 UTC
Sorry if this turns out to be a duplicate - a search trough the bugs containing the words "copy paste" doesn't seem to turn anything up though. 

The problem is as the title says: Cut and Pasting a section in the visual editor will remove all the formatting provided that section contains an image. Tested on Firefox 22, Mono skin.

Steps to reproduce:
- Navigate to and edit the page with the visual editor.
- Cut the "1972–83: Founding and company beginnings" section entirely. Eg, anything between the "1972–83:" in the section header, and the "Hodgkin's disease.[4]:231" in the section content. (This will also select the image in the section)
- Click the location where the section used to be and paste the text - technically speaking pasting anywhere causes the problem though.

The text that is pasted will be stripped of all formatting, and the image that was selected will be gone as well.
Comment 1 Mdann52 2013-07-15 10:13:25 UTC
See also
Comment 2 John Mark Vandenberg 2013-07-22 02:15:55 UTC
Confirming your example.
Comment 3 John Mark Vandenberg 2013-07-22 02:25:59 UTC
And marking as a duplicate of bug 33105, which is about supporting this functionality.

The cut operation should probably be 'disabled' if it contains elements that can't be pasted again.  However the 'cut' operation could do a 'copy' operation, with a notice to the user that cut is not supported for complex wiki blocks.

The paste operation should probably be disabled until this is fixed, with a notice to the user that they should press undo/Control-Z to get back their text if the last item on the undo stack is a Cut operation.

But there is probably also an 'enhancement' raised about those as well.

*** This bug has been marked as a duplicate of bug 33105 ***

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