Project

General

Profile

Feature #1170

Set up VisualEditor for MediaWiki

Added by Beluga Beluga almost 3 years ago. Updated about 2 years ago.

Status:
New
Priority:
Low
Assignee:
Category:
Wiki
Target version:
-
Start date:
Due date:
% Done:

30%

Estimated time:
Tags:
URL:

Description

I have tested the installation of VisualEditor on a Kubuntu 14.10 VM I happened to have. I installed nginx just to comply with what TDF infra uses.
The installation was quite straightforward, even though it has several steps because of dependencies.

Here are my notes:

I used stable versions of the extensions with stable Mediawiki (1.24.1).
Install nodejs: https://github.com/joyent/node/wiki/installing-node.js-via-package-manager
Install UniversalLanguageSelector: https://www.mediawiki.org/wiki/Extension:UniversalLanguageSelector#Download
Install VisualEditor: https://www.mediawiki.org/wiki/Extension:VisualEditor#Setting_VisualEditor_up
Install Parsoid: https://www.mediawiki.org/wiki/Parsoid/Setup#Ubuntu_.2F_Debian_on_amd64
Configure Parsoid & extension: http://edutechwiki.unige.ch/en/VisualEditor#Configure_Parsoid
You need git installed for 'npm install' to work inside /usr/lib/parsoid/src

I noticed VisualEditor was not used when creating a new page, but it worked when editing an existing page.

This is low priority, no hurry before you've upgraded to 1.24. With 1.23 you would have to also install the Parsoid PHP extension.


Related issues

Related to Infrastructure - Feature #171: Create a TestwikiClosed2015-03-252015-03-25

Related to Infrastructure - Task #2005: wiki migration to VMClosed

Blocked by Infrastructure - Task #1627: Upgrade MediaWikis to 1.25Closed

History

#1 Updated by Beluga Beluga over 2 years ago

Installing nodejs: https://nodesource.com/blog/nodejs-v012-iojs-and-the-nodesource-linux-repositories
Read section Installing Node.js v0.12 Debian / Ubuntu repository

As for using Visual editor when creating a new page, it seems the only solution is this hack: http://www.mediawiki.org/wiki/Thread:Extension_talk:VisualEditor/Enable_Visual_Editor_for_%27create%27_page/reply_(9)

The Parsoid instructions talk about having to do a manual install "if your distribution is older & doesn't have nodejs >= 0.8 available", but this shouldn't be a problem even with the VM having Ubuntu 12.04, as Nodesource packages the latest nodejs for 12.04.
Note the edutechwiki has the best instructions for configuring Parsoid.

#2 Updated by Beluga Beluga over 2 years ago

Beluga Beluga wrote:

As for using Visual editor when creating a new page, it seems the only solution is this hack: http://www.mediawiki.org/wiki/Thread:Extension_talk:VisualEditor/Enable_Visual_Editor_for_%27create%27_page/reply_(9)

Got this info from #wikimedia-dev: https://phabricator.wikimedia.org/T55441 <- that is unresolved and discussion has stalled
More from IRC: "It looks like action=edit is hardcoded into MW in a few places, so it's not exactly VE's fault"

So it seems that hack is indeed our best bet.

#3 Updated by Dennis Roczek over 2 years ago

  • % Done changed from 0 to 10

So I finally updated the MediaWiki installation to 1.24.2 :-)

So I will update some extensions next week and hopefully I will find enough time to install Visual Editor, too. :-)

#4 Updated by Dennis Roczek over 2 years ago

  • % Done changed from 10 to 20

UniversalLanguageSelector installed. ;-)

slowly progress :-p

#5 Updated by Dennis Roczek over 2 years ago

  • % Done changed from 20 to 30

Just checked: node.js is already instaled. We have instaled version 0.10.38 :-)

another dependency already installed.

#6 Updated by Dennis Roczek about 2 years ago

Just for the reference: as a smaller workaround i have installed another extension to get mediawiki syntax highlight. :-)

I do not have forgotten that ticket.

#7 Updated by Dennis Roczek about 2 years ago

ETA when tdfwiki is on 1.25 and on it's own vm

#8 Updated by Dennis Roczek about 2 years ago

#9 Updated by Dennis Roczek about 2 years ago

  • Blocked by Task #1627: Upgrade MediaWikis to 1.25 added

#10 Updated by Jan Iversen over 1 year ago

  • Related to Task #2005: wiki migration to VM added

Also available in: Atom PDF