Page MenuHomePhabricator

Edit on the section heading can't be reflected in the preview in mobile section edit
Closed, ResolvedPublic

Description

Assume there's a page with wikitext:

"""
AAA

BBB

CCC

DDD

EEE

FFF
"""

When I mobile edit section 1 (BBB), the textarea contains:

"""

BBB

CCC

DDD
"""

and in preview (if I save it with no change) would be:

"""
CCC

DDD
"""

If change wikitext in the textarea to:

"""
CCC

BBB

DDD
"""

and try to save it, the preview is still:

"""
CCC

DDD
"""

Or if I use wikitext:

"""

GGG

CCC

DDD
"""

There's still no difference in preview.

I know this is because MediaWiki's preview generates the heading in HTML, so we strip one heading in mobile preview for prettiness. Maybe we can only strip it when the new heading is identical (content and position ie. at the beginning) to the original, but this still makes removal of section heading invisible in preview...


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=62652

Details

Reference
bz62700

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:54 AM
bzimport set Reference to bz62700.
bzimport added a subscriber: Unknown Object (MLST).

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1776

This might possibly need some design input. Maybe we could change "Editing <page title>" to "Editing <section title>" to give feedback or simply resurface it in preview.

Same issue as bug 62652

  • This bug has been marked as a duplicate of bug 62652 ***