mediawiki-extensions-Visual.../modules/ve-mw
Bartosz Dziewoński 3458d8a27e Don't offer switching to VE if it's disabled in preferences
In many places we check whether VE is available before doing things
(init.isVisualAvailable). This variable includes checks for whether
the page is wikitext, etc. Now it will also include checking whether
VE is enabled in user preferences.

In almost all places where init.isVisualAvailable is used, we were
already also checking if VE is enabled, so this doesn't affect the
behavior. But notably, we didn't do it when showing the option to
switch to VE in the welcome dialog and in the toolbar, causing T243723.

Changing init.isVisualAvailable this way makes it consistent with
init.isWikitextAvailable, which has always included a checking whether
NWE is enabled in user preferences.

Bug: T243723
Change-Id: Ie174bc3f16bceb29cb155b9223e0acef70167fd6
2020-01-28 16:26:03 -08:00
..
ce doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
dm Merge "Add handling for mw:DisplaySpace" 2020-01-08 22:26:08 +00:00
init Disallow switching in NWE welcome dialog if VE should be unavailable 2020-01-28 16:26:03 -08:00
preinit Don't offer switching to VE if it's disabled in preferences 2020-01-28 16:26:03 -08:00
tests Merge "Add handling for mw:DisplaySpace" 2020-01-08 22:26:08 +00:00
themes doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ui Merge "Use mw.Api#getErrorMessage instead of custom handling" 2020-01-10 14:22:14 +00:00
ve.MWutils.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00