Page MenuHomePhabricator

NWE surface showing parsoid HTML
Closed, ResolvedPublic1 Story Points

Description


What I did was I opened a VP section for editing, left the page by clicking on a link, then returned back.

Details

Related Gerrit Patches:

Related Objects

Event Timeline

MaxSem created this task.Dec 17 2016, 12:06 AM
Restricted Application added a project: VisualEditor. · View Herald TranscriptDec 17 2016, 12:06 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
AlexMonk-WMF renamed this task from Wikitext editor displays HTML mojibake to NWE surface showing parsoid HTML.Dec 17 2016, 1:33 AM

This appears to happen when you:

  • have VE set to remember last editor, and you used visual mode last time,
  • try to action=edit,
  • try to edit only a section
  • try to edit a page that does not have visual mode enabled

So essentially, to reproduce, change your preference to remember last, mw.libs.ve.setEditorPreference( 'visualeditor' ), then go to action=edit&section=1 with a title that will not have visual mode enabled, but does have sections.

And possibly in other cases.

Change 328029 had a related patch set uploaded (by Alex Monk):
Also allow opening in source mode if VE is unavailable on action=edit

https://gerrit.wikimedia.org/r/328029

Jdforrester-WMF triaged this task as Medium priority.Jan 3 2017, 6:37 PM
Jdforrester-WMF set the point value for this task to 1.

Change 328029 merged by jenkins-bot:
Also allow opening in source mode if VE is unavailable on action=edit

https://gerrit.wikimedia.org/r/328029

Jdforrester-WMF closed this task as Resolved.Jan 3 2017, 9:03 PM
Jdforrester-WMF removed a project: Patch-For-Review.