Page MenuHomePhabricator

Allow copy/paste of cell formatting in Visual Editor Tables
Open, LowPublic


I am managing a project which has a large table that visualises progress with the use of cell colours.
I am able to use Visual Editor for nearly all of the work in managing this table EXCEPT the handling of these cell colours.

I would like to be able to NOT ONLY copy-paste the contents of a cell, but ALSO the formatting of that cell.

For example:
When I have a cell that is: Navy blue background; white text; and "100" and I copy it in VE, all that gets pasted in the next cell is the "100". This means that I then have to go into code-editor and copy-paste the style elements too. Specifically this:

| style="background: navy; color: white;" |100

For reference, this is the project page I'm referring to:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 13 2018, 12:17 PM
Restricted Application added a project: VisualEditor. · View Herald TranscriptMar 13 2018, 4:27 PM
jhsoby added a subscriber: jhsoby.

Maybe related to T54180?

matmarex updated the task description. (Show Details)Mar 15 2018, 1:32 PM
matmarex added a subscriber: matmarex.

VE only pastes the cell formatting that it understands and can edit – it will copy-paste the cell "type" (header vs content) and rowspan/colspan values. It won't copy-paste any other attributes. So yes, this might require T54180 first.

Deskana triaged this task as Low priority.Aug 17 2018, 10:31 AM
Deskana moved this task from To Triage to Freezer on the VisualEditor board.
John_Cummings rescinded a token.
John_Cummings awarded a token.

So yes, this might require T54180 first.

I don't think it does. T54180 requires creating menu options and icons on the VE ribbon, the copy/paste with formats (which should be the default, as it is in other word processors) only requires the full cell to be copied instead of only the text component:

|| align=center style=background:yellow | 243,567 || vs || align=center style=background:yellow | 243,567 ||

@Guarapiranga and I discussed this at On the one hand, if what you copied is exactly what you want and you just paste it in, then that's great. But if it's not, and now you can't change it, then that's a problem.