Page MenuHomePhabricator

Typing causes text to appear below cursor
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Go on a long English Wikipedia page, like this one
  • Ensure that &safemode=1 is added in the url to disable all gadgets and user scripts
  • Edit it in source mode with the newer wikitext bar
  • Scroll all the way at the bottom
  • Try to type some text

What happens?:

The text appears a couple of lines below the cursor

What should have happened instead?:

Typed text should appear directly before the cursor

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

See attached video for how to reproduce.

Event Timeline

Unable to reproduce on my MacBook, no matter using Safari, Firefox, Chrome or Edge.

I tried it on my MacBook in Chrome, the issue didn't replicate. It seems to only be happening on ChromeOS Dev 126.0.6455.0

This also seems to be an issue on ChromeOS Stable 124.0.6367.219

@Cocobb8 Could you select all text to check the selection area vs text area, and show from which line things went wrong?

I switched laptops since I opened this issue. I can't seem to reproduce it anymore...

A similar bug in CodeMirror 6 has been fixed by T382006.

Bhsd moved this task from Backlog to CodeMirror 5 (legacy) on the MediaWiki-extensions-CodeMirror board.

Not necessarily. I collected some examples in my sandbox, they would cause misalignment and make the CM overlay longer than the editing surface with either CM5 or CM6. However, these issues are very specific to the screen width, and I can reproduce them with Chromium version 77 and above (basically all supported versions of the 2017 editor), but not Firefox. I am not sure if anyone can reproduce the issue without coming to my laptop.

Monitor NameLenovo LEN140WQ+
Monitor Type14" LCD (WQXGA+)
Max. Visible Display Size302 mm x 188 mm (14.0")
Resolution2880 x 1800
Pixel Density242 ppi
MusikAnimal subscribed.

Looks like this could potentially still be an issue in the new version of CodeMirror, so I'm not closing this one yet.

For issues with the 2017 editor, see https://www.mediawiki.org/wiki/Help:Extension:CodeMirror#2017_editor