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.
- 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
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.