Page MenuHomePhabricator

Middle-click paste does not behave as expected in VE's wikitext editor
Closed, DuplicatePublic

Description

To reproduce:

  1. Use a system that commonly uses middle-click as a mechanism for pasting, such as most Linux window managers.
  2. Enter some text in a VE wikitext-mode edit field.
  3. Select some text elsewhere in preparation for pasting it.
  4. (optional) Focus the edit field with a left-click.
  5. Middle-click in the edit field at the location where the test should be inserted.

Expected behavior:
The text is inserted at the location of the middle-click.

Actual behavior:
The text is inserted at some other location. If the edit field did not have focus when middle-clicked, it inserts at the very beginning. If the edit field did have focus, it inserts at the current cursor position instead of at the position middle-clicked.

Workaround:
When this happens: curse at VE/Flow, press Ctrl-Z to undo the bad insertion, left-click at the desired insertion point, then middle-click to paste.

If you anticipate it happening before attempting a middle-click, you can skip the first two steps in the workaround.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Catrope subscribed.

Flow just embeds VE (and the 2017 wikitext editors), so I'm 99% sure this is a VE bug.

Deskana subscribed.

Flow is not being actively worked on at the minute, so this isn't high in our list.

@Catrope: You're right, it happens with the 2017 VE-based wikitext editor too.

@Deskana: In light of that, you should probably re-triage this.

Anomie renamed this task from Middle-click paste does not behave as expected in Flow's editor to Middle-click paste does not behave as expected in VE's wikitext editor.May 8 2018, 7:02 PM
Anomie updated the task description. (Show Details)
Vvjjkkii renamed this task from Middle-click paste does not behave as expected in VE's wikitext editor to mddaaaaaaa.Jul 1 2018, 1:11 AM
Vvjjkkii raised the priority of this task from Low to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from mddaaaaaaa to Middle-click paste does not behave as expected in VE's wikitext editor.Jul 2 2018, 1:39 PM
CommunityTechBot lowered the priority of this task from High to Low.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.