Extension:VisualEditor

From ◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞◜◝◟◞
Jump to: navigation, search

Dependencies

UniversalLanguageSelector

Installation

cd /var/www/mediawiki/extensions
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/VisualEditor.git
cd VisualEditor
git submodule update --init

Basic Configuration

Add the following to LocalSettings.php

require_once "$IP/extensions/VisualEditor/VisualEditor.php";
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgHiddenPrefs[] = 'visualeditor-enable';
#$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1; 
$wgVisualEditorParsoidURL = 'http://localhost:8142';

Multiple Wikis

If running multiple Mediawiki databases on the same server, you must set $wgVisualEditorParsoidPrefix to the interwiki name you give this wiki in parsoid's localsettings.js:

// Interwiki prefix to pass to the Parsoid instance
// Parsoid will be called as $url/$prefix/$pagename
$wgVisualEditorParsoidPrefix = 'myspecialwiki';

See

Parsoid

Mediawiki Configuration[1]

References

  1. https://www.mediawiki.org/wiki/Extension:VisualEditor