]> git.openstreetmap.org Git - chef.git/blob - cookbooks/mediawiki/templates/default/mw-ext-VisualEditor.inc.php.erb
Switch VisualEditor to new style loading for MediaWiki 1.37
[chef.git] / cookbooks / mediawiki / templates / default / mw-ext-VisualEditor.inc.php.erb
1 <?php
2 $wgVirtualRestConfig['modules']['parsoid'] = array(
3   'url' => 'http://localhost:8142'
4 );
5 $wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;
6
7 <% if @version >= "1.37" -%>
8 wfLoadExtension( 'VisualEditor' );
9 <% else -%>
10 require_once($IP .'/extensions/VisualEditor/VisualEditor.php');
11 <% end -%>
12
13 // Enable by default for everybody
14 $wgDefaultUserOptions['visualeditor-enable'] = 1;
15
16 // Don't allow users to disable it
17 // $wgHiddenPrefs[] = 'visualeditor-enable';