mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +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 |
||
---|---|---|
.. | ||
styles | ||
.eslintrc.json | ||
ve.init.mw.ArticleTargetLoader.js | ||
ve.init.mw.ArticleTargetSaver.js | ||
ve.init.mw.DesktopArticleTarget.init.js | ||
ve.init.mw.DiffLoader.js | ||
ve.init.mw.DiffPage.init.js | ||
ve.init.mw.ProgressBarWidget.js | ||
ve.init.mw.TempWikitextEditorWidget.js | ||
ve.init.MWEditingTabDialog.js | ||
ve.init.MWEditModeTool.js | ||
ve.init.MWVESwitchConfirmDialog.js | ||
ve.init.MWVESwitchPopupWidget.js | ||
ve.init.MWWelcomeDialog.js |