Page MenuHomePhabricator

"Syntax highlighting" option in source editor prevents switching to VE from guidance panel link
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:

  1. Open any article, click on 'Edit source'.
  2. In 'Edit source' mode click on 'Syntax highlighting' -
    Screen Shot 2020-07-09 at 1.44.11 PM.png (159×624 px, 58 KB)
    - no edits/actions are needed, the option selection will be automatically remembered.
  3. Go to SE article and click on 'Edit source' - the guidance panel link "Switch to the visual editor" won't work. Un-select 'Syntax highlighting' - the link will load VE (sometime it requires to reload the page).

Note: Step 2 is not quite required. Enabling/ disabling 'Syntax highlighting' option on one of the SE article will display the issue - sometime it requires to reload the page after selecting/un-selecting 'Syntax highlighting' option.

Event Timeline

@kostajh @Tgr @Catrope -- is the sort of thing that is immediately obvious what is wrong, and is an easy fix? If not, we might not fix it now.

Change 612872 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/extensions/GrowthExperiments@master] Handle CodeMirror in HelpPanelLogger.getEditor

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

Change 612872 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Handle CodeMirror in HelpPanelLogger.getEditor

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