Topic on Extension talk:CodeMirror

Middle click to paste does not work

9
Pamputt (talkcontribs)

The same as T168093, I cannot use the middle click to paste text I selected before when I use CodeMirror.

DannyH (WMF) (talkcontribs)

Looking at that ticket, it looks like you can't use middle-click to paste text at all, and that it's not specifically a CodeMirror problem. Is that correct?

Pamputt (talkcontribs)

Actually, I can use middle-click to paste in "normal" wikitext mode. But, I cannot use it with the visual editor or with CodeMirror. I do not know for other "advanced" features.

Quiddity (WMF) (talkcontribs)

Partially reproduced:

I cannot middle-click paste in the normal wikitext editor if CodeMirror is active, with Firefox+Ubuntu (Mint).

But I can middle-click paste in VE, NWE (even with CodeMirror active), and the normal wikitext editor, with Firefox+Ubuntu.

DannyH, possibly phab:T95104#3556969 might be relevant? (idk)

Pamputt (talkcontribs)

Yes, actually it is not exactly the same behaviour that the one I encounter with the Visual Editor. With the Visual Editor, the text is not pasted at the correct position. With CodeMirror, it is not pasted at all.

MichaelSchoenitzer (talkcontribs)

Firefox 55 on Linux. Can confirm Pamputt's statement: With the Visual Editor , the text is not pasted at the correct position (but at the position the cursor is sitting in). With CodeMirror, it is not pasted at all.

I work a lot with Middle click – often I use it the be able to have two things in Copy-Paste at the same time.

DannyH (WMF) (talkcontribs)

Okay, I made a bug ticket: phab:T174635.

Is this only happening on Linux? I couldn't tell from Quiddity's response.

Quiddity (WMF) (talkcontribs)

Skimming some search results (, ), it seems macOS does not make this function readily available. So yes, linux-only. (It's a fantastic feature. It gives us 2 clipboards, with instant copying to the "middle-click-clipboard" just by selecting any text.)

DannyH (WMF) (talkcontribs)

Thanks for verifying; I added that to the ticket.

Reply to "Middle click to paste does not work"