Jforrester has uploaded a new change for review.
https://gerrit.wikimedia.org/r/258403
Change subject: In VisualEditor on single edit tab wikis, set the default
editor appropriately
......................................................................
In VisualEditor on single edit tab wikis, set the default editor appropriately
Change-Id: I764bc45d713d24b672c6fd81a2d1f3144ceec9cc
---
M wmf-config/CommonSettings.php
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/03/258403/1
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 1263675..5084e11 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -2016,6 +2016,11 @@
// User access configuration
if ( $wmgVisualEditorDefault ) {
$wgDefaultUserOptions['visualeditor-enable'] = 1;
+ if ( $wmgVisualEditorSecondaryTabs ) {
+ $wgDefaultUserOptions['visualeditor-editor'] =
'wikitext';
+ } else {
+ $wgDefaultUserOptions['visualeditor-editor'] =
'visualeditor';
+ }
$wgHiddenPrefs[] = 'visualeditor-enable'; // T50666
} else {
// Only show the beta-disable preference if the wiki is in
'beta'.
--
To view, visit https://gerrit.wikimedia.org/r/258403
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I764bc45d713d24b672c6fd81a2d1f3144ceec9cc
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits