I am using the master version of CodeMirror (4.0.0) on MediaWiki 1.34.1. When CodeMirror is enabled in the editor, the Show Preview button scrolls to a random section near the bottom of the page, which is usually the References section. It should be scrolling to the top of the page instead (or wherever the preview is located depending on preferences). The same issue occurs on Wikipedia as well.
Description
Description
Related Objects
Related Objects
- Mentioned In
- T254612: Links, images, tables, and citations added at top instead of position in WikiEditor when syntax highlighting is enabled (on Chrome only)
T254962: Preview scrolls the edit window to the top of the wikitext when using syntax highlighting - Mentioned Here
- rECMI3f8a9e9f2119: build: Updating mediawiki/mediawiki-phan-config to 0.10.2
Event Timeline
Comment Actions
Thanks for reporting this. @Vishkujo: Which exact browsers and browser versions has this been tested with?
Comment Actions
I tested it on Firefox 77.0.1, Chrome 83.0.4103.97, and Edge 44.18362.449.0.
Happens on all three of those browsers.
Comment Actions
The same issue occurs on Wikipedia as well.
Can you provide a full link where to see this, and a clear list of steps to reproduce? Thanks!
Comment Actions
I think it does it on any page, or at least any long page.
Here's one example: https://en.wikipedia.org/wiki/Bleach_(manga)
Click edit, turn on the syntax highlighter, click Show Preview (you don't have to add anything to the page), and then the preview will automatically scroll to the references section.