Page MenuHomePhabricator

Preview scrolls the edit window to the top of the wikitext when using syntax highlighting
Open, Needs TriagePublic

Description

What happens:

  1. Edit a long page
  2. Scroll to the middle of the page and modify some text
  3. Click Preview
  4. Observe that in your edit window, you have been returned to the top of the page's wikitext. To get to the section that you were editing, you need to scroll or do a Find on the page.

What should happen:

  1. Edit a long page
  2. Scroll to the middle of the page and modify some text
  3. Click Preview
  4. In the edit window, you should see the wikitext that you were modifying, not the top of the wikitext.

The 2003 wikitext editor handles this situation just fine.

I was editing with the 2010 wikitext editor's syntax highlighting turned on, which may be relevant.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 10 2020, 4:17 AM
Jonesey95 updated the task description. (Show Details)Jun 10 2020, 4:17 AM

@Jonesey95: Which web browser(s) and versions has this been tested with? Wondering if this is the same underlying issue as T254705

And does this also happen without syntax highlighting?

matmarex renamed this task from Preview scrolls the edit window to the top of the wikitext to Preview scrolls the edit window to the top of the wikitext when using syntax highlighting.Jun 15 2020, 8:12 PM
matmarex edited projects, added MediaWiki-extensions-CodeMirror; removed WikiEditor.
Restricted Application added a project: Community-Tech. · View Herald TranscriptJun 15 2020, 8:12 PM