Page MenuHomePhabricator

VisualEditor: Support pasting of HTML from external sources
Closed, ResolvedPublic

Description

many + signs

Tested:

In OpenOffice, create a small table with text in cells a1, a2, b1, b2, c2.

Copy only the rows of the table.

Paste into VE.

  • the view immediately in VE is of unusable information and some "+" characters apparently indicating cell boundaries.

Version:1.0StartHTML:0000000155EndHTML:0000000881StartFragment:0000000475EndFragment:0000000864➞➞➞➞➞➞➞➞➞➞➞➞➞a1➞➞➞b1➞➞➞➞➞➞➞➞➞➞a2➞➞➞b2➞➞➞c2➞➞➞

  • the view in the "Review your changes" panel is of a swath of white space with the contents of the table interspersed.
  • User tendency is to copy entire contents of rows, yielding many empty cells. VE dutifully tracks these empty cells and displays an enormous number of "+" symbols in the immediate view and mostly empty space in the "Review your changes" view.
  • Upon save, no table is in the page when pasting from OpenOffice.

Other anomalous results are reported when pasting from the Apple Pages application. From another user:

"...number of cells didn't match the number of columns. Since they don't match, tried to delete the cells in order to recover the blank page, but they won't delete."


Version: unspecified
Severity: normal

Attached:

Screen_shot_2013-05-06_at_11.30.24_AM.png (484×1 px, 69 KB)

Details

Reference
bz48170

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:44 AM
bzimport set Reference to bz48170.
  • Editing of table structure isn't exactly supported right now
  • I'm curious what OpenOffice puts on the clipboard. It may well be that the root cause is "OpenOffice puts unreasonable things on the clipboard when copying a table"

I think users will expect that pasting things like tables from other editors and sources into VE to more or less Just Work.

(In reply to comment #2)

I think users will expect that pasting things like tables from other editors
and sources into VE to more or less Just Work.

That is bug 41193 (and yes, getting that to work would be lovely). This is about corruption of the clipboard from OpenOffice, which is a distinct problem whether or not we get the pasted-formatting working in time for the 'beta'.

Change 86664 had a related patch set uploaded by Esanders:
Rich paste

https://gerrit.wikimedia.org/r/86664