Topic on 2017 wikitext editor/Feedback

Errors copying source code from one article to another

7
Flomru (talkcontribs)

As far as I understand, it's kind of a feature, rather than bug, but it's very inconvenient.

When copying, nowiki tags get added to each line, double line breaks are removed and div block is added at the end. Those are visible changes, though and they could be undone manually.

However, there're invisible changes as well and some may brake template functionality. Please look at history of this page I had to fix to make templates work: https://ru.wikipedia.org/w/index.php?title=%D0%9A%D0%B0%D0%BD%D1%82%D0%BE%D0%BD_%28%D0%A2%D0%B5%D1%85%D0%B0%D1%81%29&type=revision&diff=90952690&oldid=90950606

Multiple spaces are throttled with something invisible..

Thanks!

Elitre (WMF) (talkcontribs)

I understand that CTRL-SHIFT-V for pasting allows you to avoid the former issue.

I am not entirely sure if that template has TemplateData. Help:TemplateData has information that will allow you to specify if the template should be shown as inline, block, or in another custom format. After that happens, the preference will be respected.

Flomru (talkcontribs)

Oh, I should've realized there's a plain text paste option. Sorry about bothering you.

Plain text paste works as before, there's a minor issue I've seen before but not reported (maybe it is repoerted by someone else):

When I paste (for example, source code of the page above, :ru:Матадор (Техас) ) to a new page, it stops showing text after 6th line ("изображение" field), showing remaining as a blank space instead. It is easy to fix just by deleting line break after that line and entering it back, but I thought it might help to improve editor

Thanks!

Elitre (WMF) (talkcontribs)

Looks good to me? Can you still reproduce that reliably, from example from another browser, or while logged out?

Flomru (talkcontribs)

Now that I've experimented with it a little, I think it's rather syntax highlight extension Extension:CodeMirror issue. Or the conjunction of two.

Here's what I get when I copy text from

https://ru.wikipedia.org/wiki/%D0%9A%D0%BE%D0%BB%D0%BE%D1%80%D0%B0%D0%B4%D0%BE-%D0%A1%D0%B8%D1%82%D0%B8_(%D0%A2%D0%B5%D1%85%D0%B0%D1%81)?veaction=editsource&safemode=1

to

https://ru.wikipedia.org/w/index.php?title=%D0%A1%D1%83%D0%B8%D1%82%D1%83%D0%BE%D1%82%D0%B5%D1%80_(%D0%A2%D0%B5%D1%85%D0%B0%D1%81)&action=edit&redlink=1&safemode=1

In chrome: https://imgur.com/An6fXrH

In IE: https://imgur.com/pjFK8NF

I'll start a thread on extension talk page..

Elitre (WMF) (talkcontribs)
ToBeFree (talkcontribs)

Please make clear to the user that Ctrl+Shift+V is a thing. After pasting, a little info box could appear. I had to come to this page here to learn about it. ToBeFree (talk) 19:07, 18 March 2018 (UTC)

Reply to "Errors copying source code from one article to another"