Page MenuHomePhabricator

Ensure CTRL-V paste works as expected in text editing mode
Closed, ResolvedPublic

Description

When the text mode was added within VE it violated expected text-mode paste behavior. It treated text mode pastes as formatted HTML, attempting to encode that formatting into wikitext. Community members unanimously described that behavior as a disruptive bug, saying the expected default paste behavior in text mode is a text paste. That unanimous feedback appears in T153315, it appears across various related phabricator tasks, and was posted in various on-wiki bug reports. The bug extended to Flow's text mode due to editor integration.

Task T190079 disregarded the unanimously expressed expected behavior. It created a disruptive popup when a paste is attempted. Paste is a common and fundamental aspect of text editing. The popup unexpectedly and disruptively obstructs the flow of editing every time paste is used.

The disruptive popup should be removed, and CTRL-V paste should be treated as a text paste in any text editing mode. The shortcut for alternate paste mode, CTRL-SHIFT-V, may be used for the alternate HTML-formatted-paste-encoded-into-Wikitext.

I expect resolving this task will involve a negligible quantity of code work, of almost trivial difficulty. T190079 would be rolled back, and it will probably be necessary to swap the behavior of CTRL-V and CTRL-SHIFT-V in text mode.

Event Timeline

@JTannerWMF or anyone, if you are interested in Discussion/Analysis input from the community then I'd be happy to help. I'm confident what the result will be, but I can easily organize feedback from EnWiki and, if needed, other English wikis.

Aklapper added a subscriber: ppelberg.

Removing task assignee due to inactivity, as this open task has been assigned for more than two years (see emails sent to assignee on May26 and Jun17, and T270544). Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be very welcome!

(See https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator.)

matmarex subscribed.

This has been implemented in T282789. Plain text is always pasted now, and a small popup appears that lets you convert to wikitext (and which disappears if you click anywhere else or continue typing).

image.png (2×3 px, 379 KB)
image.png (2×3 px, 363 KB)
image.png (2×3 px, 382 KB)