mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-03 18:36:20 +00:00
3458d8a27e
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 |
||
---|---|---|
.. | ||
ce | ||
dm | ||
init | ||
preinit | ||
tests | ||
themes | ||
ui | ||
ve.MWutils.js |