Page MenuHomePhabricator

Better support when pasting from clipboard
Closed, ResolvedPublic

Description

Currently pasting from clipboard convert contents in plain text which is good to avoid uncontrolled markup to get added to the translation (e.g., text with a style that you cannot manipulate later). However this has some limitations and we may want to tweak our approach:

  • Allow pasting content that was copied from inside Content Translation. That would allow users to move things around without losing information (e.g., misplaced references).
  • Allow pasting text with basic formatting that can be edited later such as bold, italics, and lists.
  • Allow pasting links to articles and automatically adapt them. Users should be able to paste content from either (a) the target wiki (where links don't require adaptation (b) from other wikis (where links will get adapted to the corresponding articles of the target wiki).

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
ResolvedPginer-WMF
ResolvedPginer-WMF
ResolvedNone
ResolvedAmire80
InvalidNone
ResolvedPginer-WMF
DeclinedNone
Resolved Petar.petkovic
Resolved Petar.petkovic
Resolved Petar.petkovic
ResolvedPginer-WMF
OpenNone
Resolved Petar.petkovic
Resolved Petar.petkovic
Resolved Petar.petkovic
ResolvedPginer-WMF
Resolvedsanthosh
Resolveddchan
Resolvedsanthosh
Resolvedsanthosh
ResolvedNikerabbit
OpenNone
Resolvedsanthosh
ResolvedPginer-WMF
OpenNone
ResolvedPginer-WMF
InvalidNone
Resolved Petar.petkovic
Resolvedsanthosh
Resolvedsanthosh

Event Timeline

Pginer-WMF raised the priority of this task from to Needs Triage.
Pginer-WMF updated the task description. (Show Details)
Pginer-WMF added a project: ContentTranslation.
Pginer-WMF changed Security from none to None.
Pginer-WMF added a subscriber: Pginer-WMF.
Amire80 triaged this task as Medium priority.Dec 11 2014, 8:37 AM

In this conversation, it is mentioned that it is impossible to move references around (since pasting them turns them into plain text).

@Pginer-WMF Can you assess what is missing in this ticket by checking CX2 master?

@Pginer-WMF Can you assess what is missing in this ticket by checking CX2 master?

Most of it works in CX2., but the last point is missing. When pasting content with links, those links disappear. e want to keep links, and for those pointing to a page keep them or try to adapt them if possible.

Pginer-WMF claimed this task.

Clipboard works mainly as expected with the integration of Visual Editor's editing surface. A follow-up ticket has been created to apply additional content adjustments to better adjust the pasted content to the target wiki: T208232: CX2: Apply adaptation to pasted content