Page MenuHomePhabricator

VisualEditor: Header formatting is stripped when copying (or cutting) and pasting inside a single article in Firefox
Closed, ResolvedPublic

Description

Comparison of content

I am on Mac OSX 10.8.5 on Firefox 24.0

Steps to reproduce:

  1. Navigate to any article and open the VisualEditor (https://en.wikipedia.org/wiki/Kitten?veaction=edit)
  2. Copy any selection of text that has formatting (bold, italics, link, header, references)
  3. Paste the content elsewhere in the same VE document.
  4. You will see that all formatting has been stripped. See the attached file.

Version: unspecified
Severity: normal

Attached:

Details

Reference
bz54721

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:22 AM
bzimport set Reference to bz54721.

Aha - yes, sorry, I *can* re-create this in wmf18 (en.wikipedia.org) but not wmf19 (mediawiki.org). I think we fixed this is in gerrit 85213, but closing as FIXED for now. If you can reproduce on MediaWiki.org (or master), please re-open.

Oh, it is fixed! But now I see a more minor issue:

When I copy a portion of content beginning with a header, then paste it elsewhere in the same document, everything is retained /except/ the header. However, if I begin before the header (the paragraph before the header, for example) the header is retained.

For example, copy everything from 'Start' to 'Finish' on this test page: https://www.mediawiki.org/wiki/VisualEditor:Test1234567

Everything is retained except the H2 formatting on 'Start'. See this screenshot as an example too: http://images.wikia.com/trevortest/images/5/54/Header_is_lost.png

I can create a new ticket if you need me to, but I think this one may suffice with a name change.

Making this a new bug as it's actually present in all browsers and has been around for a while, unlike this one - bug 54728.

Restricted Application added a project: User-Ryasmeen. · View Herald TranscriptMar 23 2018, 9:56 PM