Page MenuHomePhabricator

New wikitext editor handles selecting/pasting newlines weirdly
Closed, DuplicatePublic8 Story Points

Description

Steps to reproduce: write

abd
def
ghi

into an empty edit window; position the cursor before d; press shift; press down; release shift; press ctrl-insert; position cursor to first empty line; press ctrl-insert four times.

Expected result;

def
def
def
def

Actual result:

defdef
defdef

Tested on Chrome 55 / Ubuntu 16.04.

Event Timeline

Tgr created this task.Feb 7 2017, 2:46 AM
Restricted Application added a project: VisualEditor. · View Herald TranscriptFeb 7 2017, 2:46 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

ctrl+insert does nothing for me (also using chrome+ubuntu) but replacing that with ctrl+c/v gives the desired results.

Jdforrester-WMF changed the task status from Open to Stalled.Feb 7 2017, 8:02 PM
Jdforrester-WMF moved this task from To Triage to TR6: Visual diffs on the VisualEditor board.
Jdforrester-WMF moved this task from TR6: Visual diffs to TR1: Releases on the VisualEditor board.
Jdforrester-WMF added a subscriber: Jdforrester-WMF.

Is the software providing the Ctrl+Insert functionality the cause, perhaps?

Tgr added a comment.Feb 7 2017, 8:51 PM

Same behavior with ctrl-v (or right-click + "paste" or "paste as plain text"). I use standard settings as far as I am aware - (Hungarian keyboard layout but same results with English). The laptop is a month old so I don't think I changed some input setting and then forgot about it.

When I switch to VE I see abc def ghi defdef defdef defdef defdef except with enter-arrow characters instead of spaces (an arrow that starts downward and turns left). Maybe that should be a separate bug?

Jdforrester-WMF changed the task status from Stalled to Open.Mar 25 2017, 2:04 AM

Same behavior with ctrl-v (or right-click + "paste" or "paste as plain text"). I use standard settings as far as I am aware - (Hungarian keyboard layout but same results with English). The laptop is a month old so I don't think I changed some input setting and then forgot about it.

Yeah, on re-testing I get the same.

When I switch to VE I see abc def ghi defdef defdef defdef defdef except with enter-arrow characters instead of spaces (an arrow that starts downward and turns left). Maybe that should be a separate bug?

That's as intended.

Jdforrester-WMF triaged this task as Normal priority.Mar 25 2017, 2:04 AM
Jdforrester-WMF set the point value for this task to 8.

The result I get (Opera 52.0, Ubuntu 16.04, Wikitext editor 2017) is:

abd
def
def
def
def



ghi

That is, an extraneous newline ist added at the end on the insert for each paste operation,

matmarex added a subscriber: matmarex.EditedOct 1 2018, 3:36 PM

I can't reproduce this. It might have been the same issue as fixed together with T198010?

Tgr added a comment.Oct 1 2018, 4:09 PM

I can't reproduce it anymore either.

Deskana added a subscriber: Deskana.EditedOct 1 2018, 4:15 PM

Let's assume this is part of T198010, then. Feel free to reopen if this issue persists.