Page MenuHomePhabricator

Ways to opt-in/opt-out CodeMirror in 2003 Wikitext editor (without using the Toolbar)
Open, Needs TriagePublic

Description

I made a comment at T101246#4062458, from which I can quote (but made tweaks).

The feature works at the 2003 wikitext editor (the one without the javascript-coded toolbars filled with buttons as seen in later WikiEditors). I just have to:

  1. Enable the Toolbar in Preference settings
  2. Enable the "Syntax Highlighting" feature in the Beta Preference
  3. Click the syntax highlighting button in the Toolbar
  4. Disable the Toolbar without disabling the feature

I originally discussed this at https://meta.wikimedia.org/wiki/Talk:Community_Tech/Wikitext_editor_syntax_highlighting#Not_working_in_2003_WikiEditor_and_whether_to_enable_or_disable_by_default . How do you allow directly enabling or disabling the feature in the 2003 WikiEditor without needing to enable the Toolbar to click on the "Highlighter" icon button? If Remember the dot's Syntax highlighter feature can be directly opt-in/opt-out without a Toolbar, why not this other feature?

Event Timeline

gh87 created this task.Mar 19 2018, 11:43 PM
Restricted Application added a project: Community-Tech. · View Herald TranscriptMar 19 2018, 11:43 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
gh87 updated the task description. (Show Details)Mar 23 2018, 11:01 AM
gh87 updated the task description. (Show Details)
gh87 renamed this task from Enabling/Disabling the newer syntax highlighter feature without the Toolbox in 2003/Default WikiEditor to Enabling/Disabling CodeMirror mode without the Toolbox in 2003/Default WikiEditor.Apr 10 2018, 10:04 PM
gh87 renamed this task from Enabling/Disabling CodeMirror mode without the Toolbox in 2003/Default WikiEditor to Enable CodeMirror in 2003 Wikitext editor (without using the Toolbar).Apr 19 2018, 8:56 AM
jeblad added a subscriber: jeblad.EditedMay 2 2018, 11:57 PM

CodeMirror should NOT be enabled by default. The color soup makes it very hard to read for some users. Let people enable it themselves, that makes it more understandable how it can be turned off.

See for example m:Talk:Community Tech/Wikitext editor syntax highlighting#the current color scheme is hard to read (which renders highlighting useless)

gh87 updated the task description. (Show Details)May 3 2018, 12:09 AM
gh87 renamed this task from Enable CodeMirror in 2003 Wikitext editor (without using the Toolbar) to Ways to opt-in/opt-out CodeMirror in 2003 Wikitext editor (without using the Toolbar).May 3 2018, 12:17 AM

@jeblad I hate to admit that "Enable" is confusing and somewhat misleading, but I didn't wrote this task for the same purpose you opposed. Rather this is for finding ways to have the mode opted-in or opted-out in 2003 editor without using a toolbar. I changed the title and the description to reduce confusion.

Perhelion added a subscriber: Perhelion.