Copy-paste short-circuits wikitext detection mechanism
Open, LowPublic8 Story Points

Description

It used to be that when you typed [[ in VisualEditor, it showed the "wikitext detected" message. Now, it opens the link dialog directly (which is even better); the warning is still shown when you type things like ~~~~.

However, when you copy-paste text that contains [[ or ~~~~, nothing happens, which can lead to user error.

I'm not sure if it's possible (or desirable) to open the link dialog since there might be several wikilinks in the pasted text. Another possibility would be to convert wikilinks automatically. In any case, in the meantime, we should at least display the "wikitext detected" message to warn the user about their mistake.

gpaumier created this task.Apr 1 2015, 3:18 PM
gpaumier updated the task description. (Show Details)
gpaumier raised the priority of this task from to Needs Triage.
gpaumier added a subscriber: gpaumier.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 1 2015, 3:18 PM
Jdforrester-WMF triaged this task as Low priority.Apr 1 2015, 6:54 PM
Jdforrester-WMF set Security to None.
Jdforrester-WMF edited a custom field.Apr 1 2015, 7:00 PM
cscott added a subscriber: cscott.Sep 21 2015, 8:09 PM

T109449: Convert pasted fragments of basic wikitext into rich content has fixed the [[ case. The ~~~~ case could be added to the "potentially wikitext" matching heuristic, but I'd be nervous doing so -- it seems a little too general.

I suggest this bug be closed, and separate new tasks be opened focusing on the desired behavior for (a) typing ~~~~, and (b) pasting text including ~~~~, since the two cases would be handled differently when implementing, and it's not clear they should behave identically.