Visual editor

From Organic Design wiki
Revision as of 20:02, 28 August 2014 by Nad (talk | contribs) (Instructions to install Visual Editor)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

I'm creating a local page for this as it was quite difficult to install so I want some of my own notes for future reference. The main page for the extension is at MW:Extension:VisualEditor.

First download and unpack a snapshot for the extension corresponding to the wiki version as usual

Install nodejs with apt, but if your repo has an older version than 0.8, then remove it and install using [curl -sL https://deb.nodesource.com/setup | sudo bash - NodeSource] using the following commands (see this for details).

<bash>curl -sL https://deb.nodesource.com/setup

Now install the paisoid package via apt.

Edit the parsoid configuration (/etc/mediawiki/parsoid/settings.js) adding a line for each wiki in the wikia that will be using the editor, e.g.

parsoidConfig.setInterwiki( '123', 'http://123.organicdesign.co.nz/wiki/api.php' );

Restart the parsoid daemon and then test that you can read a page as follows

<bash>/etc/init.d/parsoid restart

wget http://localhost:8142/123/Main_Page</bash>

Include the extension and its settings in the wiki's LocalSettings.php, e.g.

{{{1}}}