]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mediawiki/templates/default/mw-ext-VisualEditor.inc.php.erb
Mediawiki: fixes
[chef.git] / cookbooks / mediawiki / templates / default / mw-ext-VisualEditor.inc.php.erb
diff --git a/cookbooks/mediawiki/templates/default/mw-ext-VisualEditor.inc.php.erb b/cookbooks/mediawiki/templates/default/mw-ext-VisualEditor.inc.php.erb
new file mode 100644 (file)
index 0000000..58209d5
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+$wgVirtualRestConfig['modules']['parsoid'] = array(
+  'url' => 'http://<%= @mediawiki[:name] %>:8142'
+);
+$wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;
+
+require_once "$IP/extensions/VisualEditor/VisualEditor.php";
+
+// Enable by default for everybody
+// $wgDefaultUserOptions['visualeditor-enable'] = 1;
+
+// Don't allow users to disable it
+// $wgHiddenPrefs[] = 'visualeditor-enable';