When pasting a mix of <del>eted and nondeleted text into the visual editor, the deleted text is not shown
OpenPublic

Description

Steps to reproduce

  1. Copy some text, some of which is struck out with a <del> element and some of which isn't. For example, this sentence: "don't delete me!"
  2. Try to paste it into the visual editor.
  3. Only the text which isn't struck out will appear.

This is particularly problematic because deleted text in Mediawiki diffs is marked up with a non-displayed <del> element. For example, the text removed in this edit will be copied as <del>He</del> <del>was</del> <del>a</del> <del>serving</del> <del>soldier</del>. If this is pasted into the visual editor, only the spaces will appear.

Verified in Firefox 41 and Chrome 44.

bzimport added a project: VisualEditor.Via ConduitNov 22 2014, 3:08 AM
bzimport set Reference to bz64760.
Whatamidoing-WMF created this task.Via LegacyMay 2 2014, 6:28 PM
Whatamidoing-WMF added a comment.Via ConduitMay 2 2014, 6:36 PM

Created attachment 15278
The text that was supposed to be pasted here began, "The history of the custom is rooted not necessarily for the provision of goods...

Attached:

Whatamidoing-WMF added a comment.Via ConduitMay 2 2014, 6:38 PM

Created attachment 15279
This paste should have read, "Men are rarely present at bridal showers. However, there have been "Wedding Showers" in which the groom, groomsmen and friends of the groom attend the wedding shower."

Attached:

Whatamidoing-WMF added a comment.Via ConduitMay 2 2014, 6:38 PM

Created attachment 15280
This paste is the same as the previous one in Safari, but retained the diff (table) formatting

Attached:

Whatamidoing-WMF added a comment.Via ConduitJul 2 2014, 7:09 PM

I think we have another version of this at https://en.wikipedia.org/w/index.php?oldid=614417933#Cut_and_paste_from_a_diff

This time, the copying was from a diff. The computer was running Chrome on Mac OS X Mavericks.

Jdforrester-WMF changed the task status from "Open" to "Stalled".Via WebFeb 2 2015, 7:24 PM
Quiddity added a subscriber: Quiddity.
Neil_P._Quinn_WMF changed the title from "VisualEditor: Sometimes pasting text into a page results in only part of the text appearing." to "When pasting a mix of <del>eted and nondeleted text into the visual editor, the deleted text is not shown".Via WebThu, Jul 23, 9:16 PM
Neil_P._Quinn_WMF changed the task status from "Stalled" to "Open".
Neil_P._Quinn_WMF triaged this task as "High" priority.
Neil_P._Quinn_WMF edited the task description. (Show Details)
Neil_P._Quinn_WMF set Security to None.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptVia HeraldThu, Jul 23, 9:16 PM

Verified and updated.

Neil_P._Quinn_WMF moved this task to Backlog on the VisualEditor workboard.Via WebThu, Jul 23, 9:21 PM

Add Comment