DMYTRO SHYTYI

MediaWIKI + Visual Editor

MediaWIKI + Visual Editor

This note includes details how to install the nice visual editor in the opensource wikipedia that you may host on your Server.

Additional steps required to enable VisualEditor:

yaourt php-curl

Install COMPATIBLE Parsoid vertion 0.8 by using this link. And install it:

yaourt  parsoid_0.8.0all_all

Modify the /etc/mediawiki/parsoid/config.yaml with uri:

http://localhost/mediawiki/api.php

Modify the /var/www/html/mediawiki/LocalSettings.php  with the next code:

//VisualEditor
wfLoadExtension( 'VisualEditor' );
 $wgDefaultUserOptions['visualeditor-enable'] = 1;
 $wgHiddenPrefs[] = 'visualeditor-enable';
 $wgVirtualRestConfig['modules']['parsoid'] = array(
                // URL to the Parsoid instance
                // Use port 8142 if you use the Debian package
                'url' => 'http://localhost:8142',
                // Parsoid "domain", see below (optional)
                'domain' => 'localhost',
                // Parsoid "prefix", see below (optional)
                'prefix' => 'localhost'
                );


Posted

in

Tags: